Thursday, October 20, 2011

TestTanggal Kembali kosong

package project;



import java.util.Date;

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author admin
*/
public class TestTglKembaliNull {

/**
* @param args the command line arguments
*/
public static void main(String[] args) throws Exception {

// pengujian tanggal pinjam kosong
Koleksi tesNull = new Koleksi();
Date date2 = new Date(111, 8, 7);

tesNull.setTanggalKembali(date2);


Koleksi tes1 = new Koleksi();
Date date = new Date (111,8,3);
Date date1 = new Date (111,8,7);

tes1.setTanggalPinjam(date);
tes1.setTanggalKembali(date1);
System.out.println("Hore benar");


}
}

No comments:

Post a Comment