Question: In java please and using the parseInt class method Problem: Create and run an even more sophisticated Hello Class program in your Labi directory. Design

In java please and using the parseInt class method Problem: Create andIn java please and using the parseInt class method

Problem: Create and run an even more sophisticated Hello Class program in your Labi directory. Design and edit a file called MyHelloClass.java with the following content using your favorite editor. Make sure that the class name and the file name match!!! For instance if you chose the vi(m) editor, at the prompt type in: vi MyHelloClass.java Your program should ask the user to enter an integer number n read n names provided by the user displays the provided names followed by "whisper(s) Hello Class!!!" using correct grammar and punctuation. Here are three sample runs of this program: Sample run 1: elvis prompt>java MyHelloClass Enter number of people:1 Enter name number 1.Joe Joe whispers Hello Class!!! Sample run 2: elvis prompt> java MyHelloClass Enter number of people:2 Enter name number 1.John Enter name number 2:Jane John and Jane whisper Hello Class!!! Sample run 3: elvis prompt>java MyHelloClass Enter number of people:3 Enter name number 1.John Enter name number 2:Jane Enter name number 3:Joe John, Jane, and Joe Whisper Hello Class!!! Sample run 4: elvis prompt>java MyHelloClass Enter number of people:5 Enter name number 1: John Enter name number 2:Jane Enter name number 3: Joe Enter name number 4:Jack Enter name number 5:Jim John, Jane, Joe, Jack, and Jim whisper Hello Class!!! Note: You will have to read the integer into a String and then parse the string into an integer using the parseInt class method for the Integer class (You may want to use the Java Class Libraries Reference)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!