I metodi della classe Console

public static String readLine(String prompt)
Read a string from the console. The string is terminated by a newline.

public static int readInt(String prompt)
Read an integer from the console. The input is terminated by a newline.

public static double readDouble(String prompt)
Read a floating point number from the console. The input is terminated by a newline.