Question: Java step 1: Write a program that asks the user to input an String. step 2: Print the String out. step 3: Have this program
Java step 1: Write a program that asks the user to input an String. step 2: Print the String out. step 3: Have this program ask the user to input an integer. step 4: Print out the integer. step 5: Have the user enter anything. step 6: The program prints out whether it is an integer, float, or string. I'm stuck on step 5 and 6. I tried using booleans and if else statement, but can't really wrap my head around the syntax and all. Any help would be appreciated.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
