i want to create a class to hold time data
time among 0 1 2 3 4 .... 23 mention about hour and this time period will seperate like
overtime : 0 1 2 3 4 5 6 7 19 20 21 ... 23
normal : 8 9 10 .... 18
when the time selected as normal it will have returned integer value among 8-18
otherwise if overtime selected it will have returned overtime values
my code is like that:
public enum Calismasaati { NORMAL, OVERTIME; public int returnedValue(){ switch (this) { case NORMAL: return ??? break; case OVERTIME: return ??? break; default: break; } } }
how can i do it?