public class TestArrays {
/**
* @param args
*/
public static void main(String[] args)
{
MyArrays array1 = new MyArrays();
array1.setArray();
array1.printArray();
System.out.println();
MyArrays array2 = new MyArrays();
array2 = array1;
array2.printArray();
System.out.println();
array2.arraySet[0] = 0;
array2.arraySet[2] = 2;
array1.printArray();
System.out.println();
array2.printArray();
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment