#method must return String
1 messages · Page 1 of 1 (latest)
the method must return anything in all scenarios
now it only returns if such month exists
but what if theres no month for value=13?
so how do i fix it?
but i already make sure that doesnt happen no exception will happen
Just return something like -1 after the for loop
It has to return something in all possible cases
aight ty some people told me i can add throw exception i guess that works too but i dont know what this exception name is, so i use ur method