private void calculate()
{
x=Double.parseDouble(amount1.getText().toString());
y=Double.parseDouble(amount2.getText().toString());
a=Double.parseDouble(amount3.getText().toString());
z=(a*703)/(((x*12)+y)*((x*12)+y));
tt.setText(Double.toString(z));
}
**This is what I have, everything is working properly. So, Now what I am trying to implement is, when the value of tt is less than 5, it should give an output of " you loss". basically want to implement if/else condition. But not able to do it. I thought of doing this:
if( tt.equals(<=5)
{
tt.setText("you loss");
}
else(tt.equals(>=5 && <10)
{
tt.setText("you won" );
}
Please help, I know the implementing the condition wrong.**