я попытался получить строку с названием фактического дня недели следующим образом:
Calendar c = Calendar.getInstance();
int dayOfWeek = c.get(Calendar.DAY_OF_WEEK);
if (c.get(Calendar.MONDAY) == dayOfWeek) weekDay = "monday";
else if (c.get(Calendar.TUESDAY) == dayOfWeek) weekDay = "tuesday";
else if (c.get(Calendar.WEDNESDAY) == dayOfWeek) weekDay = "wednesday";
else if (c.get(Calendar.THURSDAY) == dayOfWeek) weekDay = "thursday";
else if (c.get(Calendar.FRIDAY) == dayOfWeek) weekDay = "friday";
else if (c.get(Calendar.SATURDAY) == dayOfWeek) weekDay = "saturday";
else if (c.get(Calendar.SUNDAY) == dayOfWeek) weekDay = "sunday";
но weekDay
всегда остается нулевым, и я на самом деле понятия не имею, почему, потому что отладчик говорит, что dayOfWeek
равно 5, поэтому я должен быть равен c.get(Calendar.THURSDAY)
c.get(
?int
? Или ссылочный типInteger
? - person nanofarad   schedule 15.08.2013