Created
October 3, 2022 21:19
-
-
Save rmg007/997bd9bfe4482c6ae2a4f94d3c60568b to your computer and use it in GitHub Desktop.
learn and dive deep into Java. booleans and Relational Operators lecture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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