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