+ 1
Help a newbie with the code pls
2 Antworten
+ 5
Arthur Babaev Your identation weren't proper and you were missing a '}' .
(check your line 7)
public class Program
{
public static void main(String[] args) {
boolean rain=false;
boolean sun=true;
boolean snow=false;
if (rain||snow) {
System.out.println("Better stay at home");
} else if (sun) {
System.out.println("go outside");
} else {
System.out.println("night");
}
}
}
+ 1
oh my damn inattention. I get it now, thank you a lot!