Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started