1 public class ArrayTest {
6 public static void main(String[] args) {
7 ArrayTest[] n=new ArrayTest[10];
8 for(int i=0;i<10;i++) {
11 n[i].x.i=new Integer(10);
16 public static int addItems(ArrayTest [] array) {
18 for(int i=0;i<array.length;i++) {
20 int x=a.x.i.intValue();
25 System.printString("Sum =");
27 System.printString("\n");