Sep 28, 2014

Cetak Array Dari Belakang

package modif.array;

public class ModifArray {
    public static final int MaxMyArrayLength = 10;
    public static int PanjangMyArray = 0;
    public static int MyArray[] = new int [MaxMyArrayLength];
 
    public static boolean insertArray (int Data) {
    MyArray[PanjangMyArray] = Data;
    PanjangMyArray++;
    return true;
    }

Share:

Sep 15, 2014

Contoh Double Linked List Java Netbeans

package javaapplication6;

class Node {
    String data;
    Node prev;
    Node next;
    void info() {
        System.out.println(" ");
        System.out.println("Data :"+this.data);
        System.out.println("Alamat "+this);
     
    }
 
}
Share: