Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Reference in java equal operator

public class Demo{
    public static void main(String[] arr){
        Integer num1 = 100;
        Integer num2 = 100;
        Integer num3 = 500;
        Integer num4 = 500;
          
        if(num1==num2){
            System.out.println("num1 == num2");
        }
        else{
            System.out.println("num1 != num2");
        }
        if(num3 == num4){
            System.out.println("num3 == num4");
        }
        else{
            System.out.println("num3 != num4");
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: spigot item break 
Java :: constructors in java 
Java :: flutter calculate sum in a list 
Java :: java get first node in a list 
Java :: android java update image dynamically 
Java :: Buscando Objeto do Array 
Java :: javafx get listview fxml id 
Java :: java += 
Java :: drools spring boot 
Java :: remove duplicate string collection in java 
Java :: confirmation dialog android 
Java :: Java Target annotations attributes 
Java :: java param.ExStyle |= 0x08000000; 
Java :: JAVA XML COURSE 
Java :: how to pass string between activities android 
Java :: arraylist how to add at 0 java 
Java :: java loop aray 
Java :: code to determine distance and time in java 
Java :: hello world stack overflow 
Java :: maximum occuring element in java 
Java :: android java sqlite alter table 
Java :: primefaces p:dataexporter encoding for pdf preProcessor 
Java :: How to disable special characters on keyboard in android 
Java :: concludes() Method 
Java :: recursion java 
Java :: math.round java 
Java :: file handling in java 
Java :: java final method 
Java :: xml button color not changing 
Java :: taglib in jsp 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =