10. Relational Operators

public class RelationalOperators {
public static void main(String args) {
int age=12;
int bage=13;
System.out.println( 12< 13);

}

}

or even this is not working
public class RelationalOperators {
public static void main(String args) {

	System.out.println(2 > 1);

}

}

What happens if you use the variables in the expression, rather than primitive values?

    age < bage

then also i get the same error .

Use any two integers.

Okay, so we won’t use variables. The test may be rejecting the two variable definitions. Just remove them and and go ahead with 12 < 13. It should print true in the console.

its printing true , but i am un able to move forward to another exercise . because of above error message

Now that we know what to do, be sure to remove those two variables, Run, then refresh the page and Run again with just the integers.

1 Like

nothing works. I am stuck on this exercise.

Is this what your code looks like, now?

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

        System.out.println(3 < 7);

    }
}

yes , its the same code . I am still getting the same error as shown in the screenshot

I see you are using Chrome but also have Firefox. Maybe give that a try? I’m running out of suggestions…

I think Java/Git are down

thank you for the support . the exercise is very simple , i think its problem with the compiler

That’s some pretty freaking well-tested software, it does however look like it’s on codecademy’s end

1 Like

That just worked for me!