public class Swapper {
public static void main(String[] args) {
Integer n1 = new Integer(26);
Integer n2 = new Integer(39);
System.out.println(n1);
System.out.println(n2);
swap(n1, n2);
System.out.println(n1);
System.out.println(n2);
}
static void swap(Object o1, Object o2) {
Object tmp = o1;
o1 = o2;
o2 = tmp;
}
}