Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FooClass {
- public static void main(String[] args) {
- int foo = 1;
- System.out.println(++foo + ++foo); // outputs 5
- int bar = 1;
- System.out.println(++bar + bar++); // outputs 4
- }
- }
Add Comment
Please, Sign In to add comment