Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. /*
  2. Poetry.java
  3. Author: Brendan Barry
  4. 24 January, 2020
  5. Purpose of program: display two poems.
  6. */
  7. public class Poetry // project instructions
  8. {
  9. public static void main (String[] args)
  10. {
  11. String poem1 = "\"The Love Song of J. Alfred Prufrock\"";
  12. String poem2 = "\"We Shall Keep the Faith\"";
  13.  
  14. System.out.println("\t" + poem1 + "\n"); // first poem
  15. System.out.println("\t --------------------------------------");
  16. System.out.println("\tAnd I have known the eyes already, known them all--\n"); //\n for new line
  17. System.out.println("\tThe eyes that fix you in a formulated phrase,");
  18. System.out.println("\tAnd when I am formulated, sprawling on a pin,");
  19. System.out.println("\tWhen I am pinned and wriggling on the wall,");
  20. System.out.println("\tThen how should I begin");
  21. System.out.println("\tTo spit out all the butt-ends of my days and ways?\n"); // new line
  22. System.out.println("\t\tAnd how should I presume?");
  23.  
  24. System.out.println("\n\t\t\tBy: T.S. Eliot\n\n"); // double \n for separation w/ next poem
  25.  
  26. System.out.print("\t" + poem2 + "\n" // Title of poem; \t makes an indentation and \n starts a new line
  27. + "\t--------------------------\n\n" // double \n is for first stanza
  28. + "\tOh! you who sleep in Flanders Fields,\n" // first line of first stanza
  29. + "\tSleep sweet - to rise anew!\n\tWe caught the torch you threw\n"
  30. + "\tAnd holding high, we keep the Faith\n\tWith All who died.\n\n" // double \n at the end is for new stanza
  31.  
  32. + "\tWe cherish, too, the poppy red\n\tThat grows on fields where valor led;\n" //first line of second stanza
  33. + "\tIt seems to signal to the skies\n\tThat blood of heroes never dies,\n"
  34. + "\tBut lands a lustre to the red\n\tOf the flower that blooms above the dead\n"
  35. + "\tIn Flanders Fields.\n\n" //double space for next stanza
  36.  
  37. + "\tAnd now the Torch and Poppy Red\n" // start of 3rd stanza
  38. + "\tWe wear in honor of our dead.\n"
  39. + "\tFear not that ye have died for naught;\n"
  40. + "\tWe'll teach the lesson that ye wrought\n"
  41. + "\tIn Flanders Fields.\n\n"
  42.  
  43. + "\t\t\tBy: Moina Michael");
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement