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