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