0
What the error
What is error here java
5 RĂ©ponses
+ 4
Missing semicolon in line 4.
illegal Charecter in line 6 and 8, character should be "" instead of "".(maybe SL code editor problem or your keyboard).
hint: try double quote provided by Sololearns code editor.
+ 4
Bushra Zhrani don't give semicolon after if statement
int total =100;
if (total==0)
System.out.print("you don't win");
Also don't forget to give quotation marks
+ 4
Bushra Zhrani
and this code what the error ?
int total =100;
if (total==0);
System.out.print(you don't win);
In this case, logic error plus Syntex error.
First remove the semicolon (;) from that if statement (it will terminate the statement).
Add a double quote,
System.out.print("you don't win");
0
and this code what the error ?
int total =100;
if (total==0);
System.out.print(you don't win);