My apologies in advance as I assume this has already been answered, but I can't seem to find it anywhere. I'm passing an Integer with a leading zero to a method and instead of resolving as the value passed like I expect (leading zero not an effect) the value is changing. Here is my call and method:
assertEquals("1800", job.validateTime(1800, 0400));
I test the output:
public String validateTime(Integer startTime, Integer endTime) {
System.out.println(endTime);
}
...and the output is 256 where I would expect it to be 400 or 0400. Would someone please help me understand what is happening here? Thank you in advance!