- 3
What is cin in java😅😅✌️
4 odpowiedzi
+ 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😂😂😂