Click here to watch in Youtube :
https://www.youtube.com/watch?v=mIFM0IeNNcI&list=UUhwKlOVR041tngjerWxVccw
Click the below Image to Enlarge
Java Tutorial : Java Equality and Relational Operators |
class ComparisionDemo { public static void main(String[] args) { int value5 = 5; int value10 = 10; if (value5 == value10) { System.out.println("value5 == value10"); } if (value5 != value10) { System.out.println("value5 != value10"); } if (value5 > value10) { System.out.println("value5 > value10"); } if (value5 < value10) { System.out.println("value5 < value10"); } if (value5 <= value10) { System.out.println("value5 <= value10"); } if (value5 >= value10) { System.out.println("value5 >= value10"); } } }
value5 != value10 value5 < value10 value5 <= value10
https://sites.google.com/site/javaee4321/java/OperatorsDemoEqualityAndRelationalApp.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/OperatorsDemoEqualityAndRelationalApp
Bitbucket Link:
See also:
No comments:
Post a Comment