Untitled

mail@pastecode.io avatar
unknown
plain_text
19 days ago
531 B
2
Indexable
Never
Scanner input = new Scanner(System.in);
System.out.printIn("Enter the author's name as 'Last name, First name:");
String name = input.nextLine;
System.out.printin("Enter the year the book was published: ");
String year = input.nextLine();
System.out.printIn ("Enter the title of the book: ");
String title = input.nextLine();
System.out.printin ("Enter the publisher of the book: ");
String publisher = input.nextLine();
String all Together = name + ". " + title + "In" + publisher+", " + year + ".
System.out.printIn(allTogether);
Leave a Comment