+ 9
if...else statement (error help)
public class Program { public static void main(String[] args) { int age = 30; if (age < 16) { System.out.println("Too young"); } else { System.out.printIn("Welcome!"); } } } //why isnt it working? where is the mistake??
11 odpowiedzi
+ 16
Line 8 : you wrote printIn rather than println
(i -> l)
public class Program {
public static void main(String[] args) {
int age = 30;
if (age < 16) {
System.out.println("Too young");
} else {
System.out.println("Welcome!");
}
}
}
+ 3
ohhh.. i should use a small "L" rather than a big "i"?
+ 2
biting my ass right now... i searched for so long.. 😂
+ 2
u wrote
system.out.printIn("welcome!");
but u need to correct dat at place of "printIn"
u wrote "Captical letter i" ....there u should place "Small letter L" ....that's it
+ 2
I do this at least once a day, if not this then I forget a semicolon;
+ 2
If you need an IDE for Android, I would recommend AIDE or Dcoder.
+ 1
i thought for so long "System.out.printin"(for taking the text "in" the string)
but noooooo
its called "Line"
rip.
+ 1
@Adam Ross
IDE for Androit??
+ 1
IDE for android huh?
0
i dont know too ^^
0
hmm.. kk^^