import Modal.Koleksi;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
public class TesTglKembali {
public static void main(String[] args) {
Koleksi tesNull = new Koleksi();
Date date2 = new Date(111, 8, 7);
try {
tesNull.setTanggalKembali(date2);
} catch (Exception ex) {
Logger.getLogger(TesTglKembali.class.getName()).log(Level.SEVERE, null, ex);
}
Koleksi tes1 = new Koleksi();
Date date = new Date(111, 8, 3);
Date date1 = new Date(111, 8, 7);
try {
tes1.setTanggalPinjam(date);
tes1.setTanggalKembali(date1);
System.out.println("Congrats, anda benar!");
} catch (Exception ex) {
Logger.getLogger(TesTglKembali.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
Tidak ada komentar:
Posting Komentar