0
How do I make a input in java
How do I make a input
6 Answers
+ 1
Ok thanks i will try that!
+ 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?
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();
0
pickrandom is Javascript, do you want do it in java ?