in my instance field I have variables a = 1 and b = 2. I can not seem to pass "a" and "b" through my swap method as a parameter. I am confused to why.
public void swap(int i1, int i2) { int tmp = i1; i1 = i2; i2 = tmp; System.out.println("i1 - " + i1); System.out.println("i2 - " + i2); }