Taking Input other than using JOptionPane

Console console = new Console(System.in);
String sInput = console.readLine("Enter Input:");

Scanner scanner = new Scanner(System.in);
System.out.println("Enter Input: ");
int a  = scanner.nextInt();
String name = scanner.nextLine();

Comments

Popular posts from this blog

Puzzle

Importing Java Library

Examples on mod_rewrite