What is the result of the following code? Explain.
System.out.println ("He thrusts his fists\n\tagainst" +
" the post\nand still insists\n\the sees the \"ghost\"");
Thank you for the opportunity to help you with your question!
The output is:
He thrusts his fists
against the post
the see the "Ghosts"
The \n appends a new line ( Moves the sentence to the new line while the \t makes a tab space) The last part is used to escape the quotes and ensure that they are printed.
Content will be erased after question is completed.
Enter the email address associated with your account, and we will email you a link to reset your password.
Forgot your password?