Java tutorial
import java.util.Calendar; public class Main { public static void main(String[] args) { Calendar now = Calendar.getInstance(); String[] strDays = new String[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thusday", "Friday", "Saturday" }; System.out.println("Current day is : " + strDays[now.get(Calendar.DAY_OF_WEEK) - 1]); } }