Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Increment{
- public static void main(String[] args) {
- int a = 1;
- int b = 1;
- System.out.print(a++ + " ");
- System.out.print(++b + " ");
- System.out.print(a + " ");
- System.out.print(b + " ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement