welcom

Selamat datang di blog sederhana kami..

Thursday, October 20, 2011

TesKoleksi

package project;
import java.util.Date;

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

/**
*
* @author admin
*/
public class TesKoleksi {

/**
* @param args the command line arguments
*/
public static void main(String[] args) throws Exception {
Koleksi test = new Koleksi();
test.setTanggalPinjam(new Date(111, 9, 1));
test.setTanggalKembali(new Date(111, 9, 8));
System.out.println("lama pinjam koleksi = " + test.lamaPinjam()+ "hari");

Buku testBuku = new Buku();
testBuku.setTanggalPinjam(new Date(111, 9, 1));
testBuku.setTanggalKembali(new Date(111, 9, 8));
System.out.println("lama pinjam buku = " + testBuku.lamaPinjam()+ "hari");
}

}

0 komentar:

Post a Comment