example array in java 2

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

/**
 *
 * @author DK
 */
public class nomor2list {
     public static void main(String[] args) {
       
       
         Chain list = new Chain();
       
         list.add(0, new Character('A'));
         list.add(1, new Character('B'));
         list.add(2, new Character('C'));
         list.add(3, new Character(' '));
         list.add(4, new Character('D'));
         list.add(5, new Character('E'));
         list.add(6, new Character('F'));
       
       
         for(int i=0; i< 7; i++){
System.out.println("linklist = "+list.get(i));
                     
         }
                        System.out.println("Selesai");

       
     }
}

0 comments:

Post a Comment