+ 3
Where is the error
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int temp = sc.nextlnt(); if(temp >=100){System.out.println("Boiling"); } else{System.out.println("Not Boiling"); } } }
11 odpowiedzi
+ 2
Avinesh got it boiling b was in capital letters so that's why the error in else statement , thanks btw
+ 3
It should be capital "i".
Just copy the below.
sc.nextInt();
+ 2
https://code.sololearn.com/c6RDmh4032a1/?ref=app
Here is the code.
nextInt is short form for nextInteger.
+ 1
Avinesh copied your program but still can't complete my practice problems,it says half of my test case are false .
0
sc.nextInt();
After next, that is capital "i" and not lowercase "l".
0
Avinesh it doesn't resolve even after small i
0
Avinesh half issue resolved , now there is some prob in else half I guess
,And can you tell why do we have to write I in capital?
0
This program is in introduction to java ,conditionals.
0
What's wrong in my program
0
Can you please share the link of your program in which you want help. That will be easy for the helpers to get the error.
0
nextlnt(). Error in "l"