example array in java

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author DK
 */
public class nomor1list {
 
 
    public static void main(String[] args) {
 
 
    Chain list = new Chain();

    list.add(0, new Integer(0));
    list.add(1, new Integer(1));
    list.add(2, new Integer(2));
    list.add(3, new Integer(3));
    list.add(4, new Integer(4));
    list.add(5, new Integer(5));
    list.add(6, new Integer(6));
    list.add(7, new Integer(7));
    list.add(8, new Integer(8));
    list.add(9, new Integer(9));
    list.add(10,new Integer(10));
 

    for(int i=0; i<11; i++){  
        System.out.println("Linklist["+i+"] = "+list.get(i));
     
    }
    }

  }

0 comments:

Post a Comment