import java.util.Calendar; import java.util.GregorianCalendar; public class Waktu { String[] bulan={"Januari", "Pebruari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "Nopember", "Desember"}; private Calendar calendar = Calendar.getInstance(); public String getHari() { if (calendar.get(Calendar.DAY_OF_WEEK) == 1) { return "Minggu"; } else if (calendar.get(Calendar.DAY_OF_WEEK) == 2) { return "Senin"; } else if (calendar.get(Calendar.DAY_OF_WEEK) == 3) { return "Selasa"; } else if (calendar.get(Calendar.DAY_OF_WEEK) == 4) { return "Rabu"; } else if (calendar.get(Calendar.DAY_OF_WEEK) == 5) { return "Kamis"; } else if (calendar.get(Calendar.DAY_OF_WEEK) == 6) { ...