- 9

print days in week

26th Apr 2017, 5:48 PM
G G
G G - avatar
6 Answers
+ 11
import java.time.*; then check it like that: if (DayOfWeek.of(1)==DayOfWeek.SATURDAY) But this statement will always be false, because the enum value according to 1 is MONDAY.
26th Apr 2017, 6:03 PM
Tashi N
Tashi N - avatar
+ 10
What is your question?
26th Apr 2017, 5:52 PM
Tashi N
Tashi N - avatar
+ 8
I still don't know what you want to do. Do you want to print all days of the week, like Monday, Tuesday and so on or do you want to output, which day of the week was on a particular date?
26th Apr 2017, 5:57 PM
Tashi N
Tashi N - avatar
+ 1
thanks alot for you halp
26th Apr 2017, 6:08 PM
G G
G G - avatar
0
print days in week?
26th Apr 2017, 5:54 PM
G G
G G - avatar
0
if 1= "saterday"
26th Apr 2017, 5:57 PM
G G
G G - avatar