Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println(1 + 1 + 1 + "1" + 1 + 1 + 1);
- System.out.println(42 + " is the answer to " + "everything!" + 1 + 1);
- System.out.println(42 + " is the answer to " + "everything!" + (1 + 1));
- int x = 1;
- x += 3;
- System.out.println("The value of x is " + x);
- int y = 10 % 3;
- int z = 15 / 4;
- z *= 10;
- System.out.println(y + " is less than " + z);
- double a = 17 / 3.0;
- double b = 10.0 / 5;
- System.out.println(a + " is greater than " + b);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement