I've been getting problems with the Math.min more so when I try to do
System.out.println(Math.min(0700,1400));
it returns 448 instead of 0700 the minimum value. I know it works when the 0 isn't there, but due to user input I kinda need it to be formatted that way. Is there any way around this, maybe like a substitute method or a quick efficient way to get rid of the 0 before I put it in Math.min parameter. I could do an if statement that checks then parses a substring
, but that seems to tedious and inefficient. Any ideas?