// Input using Console Example
import java.io.*;
class ConsoleExample
{
public static void main( String args[ ] )
{
Console cn = System.console();
int n;
System.out.print( "Enter a Number : ");
n = Integer.parseInt( cn.readLine() );System.out.println( "The given number : " + n );
}
}
Output:Enter a Number : 100
The given number : 100