Stuck in 7/11 help pls!


#1



Messages: The if block should be skipped and the contents of the else block should be printed to the console.


public class IfElse {
	public static void main(String[] args) {

		if (7==8) {

			System.out.println("Try again...");

		} else {

			System.out.println("HAHAHA!");

		}
		
	}
}


#2

make some space between numbers and equal sign
working code :


#3

dont change else block statement

what was that before? i think it was

System.out.println("Success!");

so try this :slight_smile:


#4

Thanks a lot I passed it after I reset it


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.