Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner in = new Scanner(System.in);
- String x = "hell";
- String y = "hell";
- if (x == y) {
- System.out.println("x and y are the same");
- } else {
- System.out.println("xy and y are not the same");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement