0

How do I make a input in java

How do I make a input

26th Aug 2019, 1:35 AM
Ethan
Ethan - avatar
6 Answers
+ 1
Ok thanks i will try that!
26th Aug 2019, 1:39 AM
Ethan
Ethan - avatar
+ 1
Ok so i have a syntax error not with the input but with the thing im trying to make can you guys help me with that too?
26th Aug 2019, 1:45 AM
Ethan
Ethan - avatar
0
use this library to get the user input, Import java.util.Scanner; then declare in the class, Scanner reader = new Scanner (System.in); P/s: the reader is the name only, you can change it with your own. To make a user input, you can do like at below, System.out.println("Please enter the value: "); int value = reader.nextInt();
26th Aug 2019, 1:39 AM
Uchiha Itachi
Uchiha Itachi - avatar
26th Aug 2019, 1:39 AM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘ä蟿˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘ä蟿˜Ż - avatar
0
pickrandom is Javascript, do you want do it in java ?
26th Aug 2019, 3:34 AM
zemiak