Tuesday 3 November 2015

Java Tutorial : Java Equality and Relational Operators


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
ComparisionDemo.java
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");
        }

    }
}
Output
value5 != value10
value5 < value10
value5 <= value10
Click the below link to download the code:
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:

  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • No comments:

    Post a Comment