CS230

 

Using a Scanner: better Intro.java

In this Task you will use Java's built-in Scanner class to get information from the user, through the standard input (keyboard).

The Scanner class, which is part of the standard Java class library (java API), provides methods for reading input values.

A better Intro.java

In this task we will write a better version of the Intro class. Start with this version of the Intro.java program. (Feel free to select, copy and paste the code into a Java class in BlueJ).

Make the necessary changes so that the new program asks the user for their name, year of graduation, their money and whether they are cs majors or not. The program reads the user's answers as they are typed in. Finally, the program should produce a paragraph, summarizing the user's information, and presents it to the user.