I am unable to understand why this code doesn't work
if(value=="imperial"){
   high=high*1.8 + 32;
   low=low*1.8 + 32;
        }
But when I use the equals() method then it works fluently....
if(value.equals(getString(R.string.imperial))){
                high=high*1.8 + 32;
                low=low*1.8 + 32;}
where value is a string and R.string.imperial refers to the string "imperial".
 
     
     
    