+ 1

While using " import java.util.Scanner" my code is not giving out put

https://code.sololearn.com/cbNBLXV3o42a/?ref=app

1st Oct 2018, 5:18 AM
Shaurya
Shaurya - avatar
4 Antworten
+ 8
There are few syntax errors: 1. Change Import to import 2. Change nextline() to nextLine() 3. Change Scannersc to Scanner sc 4. Change newScanner to new Scanner Your code will take user input after showing prompt message, it still won't print any value. Write any System.out.println() statement to print the values.
1st Oct 2018, 5:27 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 2
https://code.sololearn.com/cVuPOyOE0Y82/?ref=app I corrected you: Import to import (remember java is case sensitive) Scannersc to Scanner sc remember you need spaces newScanner to new Scanner nextline to nextLine I changed your class name from helo to Hello. You don't have to put uppercase letter in class names, but usually everyone do. Here the corrected code I've also added System.out.println() two times so it show the output
1st Oct 2018, 5:27 AM
Daniele Bonomi
Daniele Bonomi - avatar
0
hlp me in souting out this Problem 😲😖😖
1st Oct 2018, 5:19 AM
Shaurya
Shaurya - avatar
0
already correct ansrs are given above by Shamima Yasmin and Daniele Bonomi
1st Oct 2018, 6:54 AM
Abdur Rahman
Abdur Rahman - avatar