References, Objects, and Parameter Passing Data Structures
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); □ System.out.println(a.value + ", " + b.value + ", " + c.value);} }
public class X { public int value; public static void bah(X d, X e) { X f = d; f.value = f.value+1; X g = new X(); g.value = e.value+1; e = g; } public static void main(String args[]) { X a = new X(); a.value = 1; X b = new X(); b.value = 10; X c = a; c.value = 5; bah(a,b); System.out.println(a.value + ", " + b.value + ", " + c.value);} }