Super easy, I am sure – but in conditional if/then statements using droid, how do I go about using them with integers, ie:
int currentHour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
public void getResult(int currentHour, Intent intent) {
if (currentHour < 14) then:
//do something
}
I know this isn’t the right way to do it, but I am having a brain fart as to comparing ints…thanks!
1 Answer