What is cin in java😅😅✌️ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

What is cin in java😅😅✌️

12th Sep 2017, 5:44 PM
Kaffarell
Kaffarell - avatar
4 Answers
+ 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
12th Sep 2017, 6:27 PM
Rrestoring faith
Rrestoring faith - avatar
+ 4
cin does not exist in Java.
12th Sep 2017, 6:20 PM
Rrestoring faith
Rrestoring faith - avatar
+ 2
There is no object cin in Java. Did you mean in C++?
12th Sep 2017, 7:25 PM
SerbianGamesBL
SerbianGamesBL - avatar
- 2
No whats cin in java because i programmed a programm in c++ and now i must translate it😂😂😂
12th Sep 2017, 6:22 PM
Kaffarell
Kaffarell - avatar