What is the result of the following code? System.out.println, question help

label Computer Science
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

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\"");

Jan 18th, 2016

Thank you for the opportunity to help you with your question!

The output is:

He thrusts his fists

        against the post

and insists

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.

Please let me know if you need any clarification. I'm always happy to answer your questions.
Jan 18th, 2016

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Jan 18th, 2016
...
Jan 18th, 2016
Oct 21st, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer