Created
July 26, 2017 11:20
-
-
Save RaynZayd/4e76608313dd030f5b134d16c5257816 to your computer and use it in GitHub Desktop.
/**This program demonstrates the use of Equality, Relational and Operators. It check if two integer value are equal, not equal, greater than, less than, great or equal to and less that or equal to then prints to the screen if true or false. By Rayn Zayd **/
This file contains 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 CompareTest{ | |
public static void main(String[] args){ | |
int x = 10; | |
int y = 5; | |
System.out.println(x == y); | |
System.out.println(x != y); | |
System.out.println(x > y); | |
System.out.println(x < y); | |
System.out.println(x >= y); | |
System.out.println(x <= y); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment