11/12 totally lost

public class EqualityOperators {
public static void main(String args) {
boolean A = (4 > 2);
boolean B = (5 > 2);
System.out.println(A == B);

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/learn-java/lessons/introduction-to-java/exercises/equality-operators?action=resume

<In what way does your code behave incorrectly? Include ALL error messages.>

```

Replace this line with your code.

<do not remove the three backticks above>

HI why are you lost?

I have tried everything changed it 10 times, and still cant figure out… I have the boolean values with is true, and the equality value which is a == b

The instruction are very clear
Do not declare any variables.

1 Like

I obviously dont understand the “Do not declare any variables” then or how not to, or specially what is meant by it

here

boolean A = (4 > 2);
boolean B = (5 > 2);
System.out.println(A == B);

so if they aske you do not declare any variable it will be like that

System.out.println(A == B);

then where you put A and B you will put (4 > 2) (where you put A) and (5 > 2) (…B)

public class EqualityOperators {
public static void main(String args) {
System.out.println(4>2 == 5>2);

still not working boolean values still has to be there i guess? like this

boolean (A) = 4 > 2;
boolean (B) = 5 > 2;
System.out.println(4>2 == 5>2);

still not working :>

Just put this line

System.out.println(4>2 == 5>2)

if it doesn’t work can you take a screenshot of your code

still doenst work

hi you didn’t close the public class EqualityOperators and public static void main(String[] args)

public class EqualityOperators {
    public static void main(String[] args) {
         //here put the System.out.println(4>2 == 5>2)
    }   
}

true == true :slight_smile:

I’m also completely stuck - I did everything recommended in this forum and I still can’t get past this question.
@dataplayer45933 did you manage to get it right? If so - how?

@vixy96

  1. Go here https://discuss.codecademy.com/c/learn-java/introduction-to-java
  • Use the + New Topic button
  • Fill out the template
  • Someone will help

Stuck also :confused:

  1. Go here https://discuss.codecademy.com/c/learn-java/introduction-to-java
  • Use the + New Topic button
  • Fill out the template
  • Someone will help

Nevermind :slight_smile:

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