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

Computer Science
Tutor: None Selected Time limit: 1 Day

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

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Jan 18th, 2016
...
Jan 18th, 2016
Dec 11th, 2016
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