Things get a little bit more complicated in Listing 12.
| Listing 12. Print the references to the two objects. |
|---|
System.out.print(
((Prob05X)var1[0]) + " ");
System.out.print(
randomData + 5 + " ");
System.out.println(
((Prob05X)var1[1]));
}//end main
}//end class Prob05
|
| File: di.htm | [Next] | [Prev] |