Sunday, September 28, 2014

Contoh Double Linked List

11:39 PM Posted by beckti'velu No comments
package contoh;

public class Contoh {
public static class t_dll_node {
    float data;
    t_dll_node prev, next;
}
public static t_dll_node NodeAwal, NodeAkhir;

Array Mahasiswa Dengan Scanner (Method)

5:29 AM Posted by beckti'velu No comments
package modif.array;

import java.util.Scanner;

public class ModifArray {
    public static String [] nrp = new String [100];
    public static String [] nama = new String [100];
    public static String [] nilai = new String [100];
    public static int data;

Cetak Array Dari Belakang

1:49 AM Posted by beckti'velu No comments
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;
    }

Monday, September 15, 2014

Contoh Double Linked List Java Netbeans

8:39 PM Posted by beckti'velu No comments
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);
     
    }
 
}

Contoh Class Java Netbeans

7:54 PM Posted by beckti'velu No comments
package javaapplication6;

class Serigala {
    public String nama;
    public String warna_bulu;
    public void mengaung () {
        System.out.println("Auuuuuu");
    }