Create a program that prints the following excerpt from Edgar Allen Poe's The Raven:
Once upon a midnight dreary, while I pondered weak and weary, Over many a quaint and curious volume of forgotten lore, While I nodded, nearly napping, suddenly there came a tapping, As of some one gently rapping, rapping at my chamber door. `'Tis some visitor,' I muttered, `tapping at my chamber door - Only this, and nothing more.' Ah, distinctly I remember it was in the bleak December, And each separate dying ember wrought its ghost upon the floor. Eagerly I wished the morrow; - vainly I had sought to borrow From my books surcease of sorrow - sorrow for the lost Lenore - For the rare and radiant maiden whom the angels named Lenore - Nameless here for evermore. |
Necessary Information (Click on links for more info):
There are two ways to print in Java, System.out.println(); and System.out.print(). The only difference is that System.out.println(); prints a return at the end of what you are printing.
The sentence or words that you put in the quotes in the print statement is called a String.
To print a new line in Java you use, "\n".
To print an apostrophe, you use "\'".
It is possible that you may need help with this. Contact me with any questions you have!
There are two ways to print in Java, System.out.println(); and System.out.print(). The only difference is that System.out.println(); prints a return at the end of what you are printing.
The sentence or words that you put in the quotes in the print statement is called a String.
To print a new line in Java you use, "\n".
To print an apostrophe, you use "\'".
It is possible that you may need help with this. Contact me with any questions you have!