0
How to take a variable in put from user in java?
Give a proper syntax
3 Antworten
+ 3
Check this lesson of sololearn
https://www.sololearn.com/learn/Java/2220/
+ 2
import java.util.Scanner;
class demo{
public static void main (String[] args) {
Scanner keyboard =new Scanner(System.in);
int variable =keyboard. nextInt() ;
}
}