integer - if/then conditional statements using ints -


super easy, sure - in conditional if/then statements using droid, how go using them integers, ie:

int currenthour = calendar.getinstance().get(calendar.hour_of_day);  public void getresult(int currenthour, intent intent) {     if (currenthour < 14) then:         //do } 

i know isn't right way it, having brain fart comparing ints...thanks!

public void getresult(int currenthour, intent intent) {    if (currenthour < 14){     //do   } else {     //do else   }  } 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -