+ 1
While using " import java.util.Scanner" my code is not giving out put
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.
+ 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
0
hlp me in souting out this Problem 😲😖😖
0
already correct ansrs are given above by Shamima Yasmin and Daniele Bonomi