0
Input java?
how to input with java and get the value?
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();
+ 1
please explain