- 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