Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Poetry.java
- Author: Brendan Barry
- 24 January, 2020
- Purpose of program: display two poems.
- */
- public class Poetry // project instructions
- {
- public static void main (String[] args)
- {
- String poem1 = "\"The Love Song of J. Alfred Prufrock\"";
- String poem2 = "\"We Shall Keep the Faith\"";
- System.out.println("\t" + poem1 + "\n"); // first poem
- System.out.println("\t --------------------------------------");
- System.out.println("\tAnd I have known the eyes already, known them all--\n"); //\n for new line
- System.out.println("\tThe eyes that fix you in a formulated phrase,");
- System.out.println("\tAnd when I am formulated, sprawling on a pin,");
- System.out.println("\tWhen I am pinned and wriggling on the wall,");
- System.out.println("\tThen how should I begin");
- System.out.println("\tTo spit out all the butt-ends of my days and ways?\n"); // new line
- System.out.println("\t\tAnd how should I presume?");
- System.out.println("\n\t\t\tBy: T.S. Eliot\n\n"); // double \n for separation w/ next poem
- System.out.print("\t" + poem2 + "\n" // Title of poem; \t makes an indentation and \n starts a new line
- + "\t--------------------------\n\n" // double \n is for first stanza
- + "\tOh! you who sleep in Flanders Fields,\n" // first line of first stanza
- + "\tSleep sweet - to rise anew!\n\tWe caught the torch you threw\n"
- + "\tAnd holding high, we keep the Faith\n\tWith All who died.\n\n" // double \n at the end is for new stanza
- + "\tWe cherish, too, the poppy red\n\tThat grows on fields where valor led;\n" //first line of second stanza
- + "\tIt seems to signal to the skies\n\tThat blood of heroes never dies,\n"
- + "\tBut lands a lustre to the red\n\tOf the flower that blooms above the dead\n"
- + "\tIn Flanders Fields.\n\n" //double space for next stanza
- + "\tAnd now the Torch and Poppy Red\n" // start of 3rd stanza
- + "\tWe wear in honor of our dead.\n"
- + "\tFear not that ye have died for naught;\n"
- + "\tWe'll teach the lesson that ye wrought\n"
- + "\tIn Flanders Fields.\n\n"
- + "\t\t\tBy: Moina Michael");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement