10. Relational Operators


#1

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);

}

}


#2

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

    age < bage

#3

then also i get the same error .


#4

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.


#5

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


#6

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.


#7

nothing works. I am stuck on this exercise.


#8

Is this what your code looks like, now?

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

        System.out.println(3 < 7);

    }
}

#9

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


#10

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


#11

I think Java/Git are down


#12

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


#13

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


#14

That just worked for me!