Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package test;
  6.  
  7. /**
  8.  *
  9.  * @author Mihai
  10.  */
  11. public class Main {
  12.  
  13.     public static void main(String[] args) {
  14.         //test();
  15.        
  16.         Integer a = 100;
  17.         Integer b = 100;
  18.  
  19.         Integer c = 200;
  20.         Integer d = 200;
  21.        
  22.  
  23.         if ( a == b){
  24.             System.out.println("a==b");
  25.         }
  26.         if ( c == d){
  27.             System.out.println("c==d");
  28.         }
  29.        
  30.         // in consola se afiseaza doar a==b. De ce ?
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement