Help with the exercise Boolean Operator: || 3/11


#1

public class Or {
public static void main(String[] args) {
boolean trues=2<3||3<2;
System.out.println(trues);
//System.out.println(0==1 || 2==3);

}

}


#2

well first off line 3 there need to be a space between 'trues' and '=' and '2<3' and '||' and '3<2'
you also have set the last line into a comment so get rid of the //.
P.S. - next time use the format and be more descriptive about your problem.


#3

To make it easier for anyone interested in helping, here is the URL to this exercise:
https://www.codecademy.com/en/courses/learn-java/lessons/conditionals-control-flow/exercises/boolean-operators-or


#4

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