Question: Build a Java Class that inputs data through a Scanner. Use the Scanner class to accomplish this. Your code should ask the user to enter
Build a Java Class that inputs data through a Scanner. Use the Scanner class to accomplish this. Your code should ask the user to enter their salary. The user will then type in their Salary. Your program will then get their salary using a Scanner and print out their salary using System.out.println(). All your code should go in the main() method. Call your class UserInput.java.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
