the part of code is shown below:
if(currentTime > 800 || currentTime <= 1200)
{
System.out.println("The current time: " + currentTime + "\nPart of Day: Morning");
}
if( currentTime > 1200 || currentTime <= 1700)
{
System.out.println("The current time: " + currentTime + "\nPart of Day: Afternoon");
}
if( currentTime > 1700 || currentTime <= 2400 )
{
System.out.println("The current time: " + currentTime + "\nPart of Day: Evening");
}
if( currentTime > 0100|| currentTime <= 800)
{
System.out.println("The current time: " + currentTime + "\nPart of Day: Early morning");
}
}
and i get this error msg :
integer number too large: 0800
if(currentTime > 0800 || currentTime <= 1200)
^
integer number too large: 0800
if( currentTime > 0100|| currentTime <= 0800)
^
and i try to change the "0800" to "800", the problem is solved.... i would like to know why this happened???? can anyone help???
regards,