0

Input java?

how to input with java and get the value?

12th Oct 2017, 3:02 PM
Muhammad Adil
Muhammad Adil - avatar
2 Answers
+ 5
Scanner variableName1 = new Scanner(System.in); int input = variableName1.nextInt(); or String input = variablename1.nextLine(); or double unput = variableName1.nextDouble(); etc.. at the end..... variableName1.close();
12th Oct 2017, 3:21 PM
Meharban Singh
Meharban Singh - avatar
+ 1
please explain
12th Oct 2017, 3:21 PM
Muhammad Adil
Muhammad Adil - avatar