I have a non-zero integer value which is the sum of the days of the week where the days have the following values:
Sunday = 1
Monday = 2
Tuesday = 4
Wednesday= 8
Thursday = 16
Friday = 32
Saturday = 64
Example: Integer value 127 - All days of week, 65- only on sunday and saturday
I have seen few posts Convert integer to a list of week days regarding this, but I could not find any of the code in Java.
Depending on integer number i need to schedule task on particular day (sunday- saturday)