This Java code uses the Scanner class to take user input of different data types including float, double, and strings. It prompts the user to enter values of each type, stores them in variables, and prints out the values that were entered.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
38 views
Java Input Output Program
This Java code uses the Scanner class to take user input of different data types including float, double, and strings. It prompts the user to enter values of each type, stores them in variables, and prints out the values that were entered.