0

What the error

What is error here java

7th Nov 2020, 10:20 AM
STOP
STOP - avatar
5 Respuestas
+ 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.
7th Nov 2020, 10:26 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 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
7th Nov 2020, 10:32 AM
ツSampriya😘ツ
ツSampriya😘ツ - avatar
+ 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");
7th Nov 2020, 10:33 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
0
and this code what the error ? int total =100; if (total==0); System.out.print(you don't win);
7th Nov 2020, 10:28 AM
STOP
STOP - avatar