import java.util.\*;
class Example{
public static void main(String asrg\[\]){
boolean b = false;
System.out.println(10\>4 && true !=b==(10+3/2==8)==true); //Line 1
}
can anyone explain this expression?
expecting the steps how to calculate these
Your code won't compile; It's missing a
}at the end of the class.Also, did you copy and past this from a website? Why are there
\all over the place?For better readability, use the Java-style array declaration:
String[] argsinstead ofString args[].To check a boolean value, you don't have to compare it to
trueorfalse. This includes any actual booleans, or expressions outputting a boolean, such as:10 + 3 / 2 == 8, which is false.