I've tested this on several different methods. The string I compare s to is exactly the same as the one that shows up in the log file. The apostrophes are to make sure there's no spaces. Anyone know what's going on?
import java.lang.reflect.Method;
import android.util.Log;
public class Button {
    public Button () {
        for(Method m1:MyOtherClass.class.getMethods()) {
        String s = m1.getName();
            if(s == "Update") {
                Log.i("result","true");
            }
            Log.i("test", "'" + s + "'");
        }
    }
}
 
     
     
     
    