Question: Write a program that takes a single String of user input that is separated by spaces and parses the input into separate variables using looping
Write a program that takes a single String of user input that is separated by spaces and parses the input into separate variables using looping and String methods. You will create an employee input program(EmployeeData.java) and class(Employee.java). EmployeeData accepts Employee information using looping to accept additional input until the user enters a value that ends the input. From a single input String, read in the employee's first name, last name, ID number and hourly wage in one line, separated by spaces. These items will be needed to populate objects or variables that will have a String for the first name, a String for the last name, an integer for employee ID and a double for wage.
After parsing the data, create an Employee class object that contains the data and a method for printing the formatted Employee Data as shown below:

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
