I am trying to compare two string in my application but it fails to compare. I don't know why it fails.
    public void processFinish(String output) {
            // TODO Auto-generated method stub
            //Toast.makeText(getApplicationContext(), output,Toast.LENGTH_LONG).show();
            String check="false";
            if(output==check){
                     //doing something here
                }else{
                    //something here
                }
   }
the string object output has the value "false" but always the else block is executed why?
I Tried by changing the output=="false" to 
output.equals(check)
output.equalsIgnoreCase(check)
output.contentEquals(check)
nothings works...
 
     
     
     
    