I have written code to print the day number of week, from 1 - Monday ...
I found this:
java.time.DayOfWeek num = LocalDate.of(year, month, day).getDayOfWeek();
System.out.println(num);
Example output:
> FRIDAY
So, instead of printing the number, it prints the name of the day.
How can I fix it?
import java.time.LocalDate;