Skip to content

Instantly share code, notes, and snippets.

@rmg007
Created October 3, 2022 21:19
Show Gist options
  • Select an option

  • Save rmg007/997bd9bfe4482c6ae2a4f94d3c60568b to your computer and use it in GitHub Desktop.

Select an option

Save rmg007/997bd9bfe4482c6ae2a4f94d3c60568b to your computer and use it in GitHub Desktop.
learn and dive deep into Java. booleans and Relational Operators lecture
public class Main {
/*
== , !=, >, >=, <, <=
*/
public static void main(String[] args) {
boolean isActive = true;
System.out.println(isActive);
System.out.println(5==5);
System.out.println(5 != 5);
System.out.println(5 != 3);
System.out.println(5 > 3);
System.out.println(5 > 7);
System.out.println(1 >= 3);
System.out.println(3 >= 3);
System.out.println(5 >= 3);
System.out.println(3 <= 3);
System.out.println(5 <= 3);
System.out.println(1 <= 3);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment