Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1.         Scanner in = new Scanner(System.in);
  2.  
  3.         String x = "hell";
  4.         String y = "hell";
  5.  
  6.         if (x == y) {
  7.             System.out.println("x and y are the same");
  8.         } else {
  9.             System.out.println("xy and y are not the same");
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement