java read input from user
import java.util.Scanner; /* Required Import*/ public class reading{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); // Create Reader System.out.print("Enter Your Age"); // Ask the user for something int age = scan.nextInt(); // Read value from user System.out.print(age); // Output the value } } /* Java Reading Options: 1_ reading int => nextInt(); 2_ reading char => next().charAt(0); Single Character 3_ reading string => next(); 4_ reading double => nextDouble(); */