做就是了:
public void onClick() { if(condition == true) { return; } string.setText("This string should not change if condition = true");}if(condition == true)只写是多余的
if(condition)(例如,这样就不会
=误写)。

做就是了:
public void onClick() { if(condition == true) { return; } string.setText("This string should not change if condition = true");}if(condition == true)只写是多余的
if(condition)(例如,这样就不会
=误写)。