- 3
What is cin in javađ đ âïž
4 Respostas
+ 7
The Scanner can be used to get user input in Java. It is fairly different from cin though.
Exanple/
Scanner sc = new Scanner(System.in);
// creating the scanner
String name = sc.nextLine();
// get users name
int age = sc.nextInt();
// get users age
+ 4
cin does not exist in Java.
+ 2
There is no object cin in Java. Did you mean in C++?
- 2
No whats cin in java because i programmed a programm in c++ and now i must translate itđđđ