Print Poem Heading

Print Poem Heading - String title = in.nextLine();

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * Let's the user input their own poem. */ package printpoem; import java.util.Scanner; /** * * @author Manny */ public class PrintPoem { /** * @param args the command line arguments */ public static void main(String[] args) { // Input Scanner in = new Scanner(; System.out.println("Please enter the Name of the poem: ");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: String title = in.nextLine(); System.out.println("Please enter the author of your poem: "); String author = in.nextLine(); System.out.println("Please enter the first line of your poem: "); String firstLine = in.nextLine(); } }...
View Full Document

This note was uploaded on 12/07/2011 for the course BUS 350 taught by Professor Leighjin during the Fall '11 term at S.F. State.

Ask a homework question - tutors are online