three if statements
<p>I have three if statements like:</p>

<pre><code>public class velocity extends Activity {

TextView textOut1,textOut2,textOut3;

private static ImageButton btnVelocity2;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.velocity);

    textOut1= (TextView) findViewById(R.id.tvGetInput1);
    Button variable10= (Button) findViewById (R.id.variable10);

    btnVelocity2 = (ImageButton) findViewById(R.id.btnVelocity2);       
    btnVelocity2.setImageResource(R.drawable.velocity);

variable10.setOnClickListener(new View.OnClickListener() 
{ 
  @Override public void onClick(View v) 
  {
EditText getInput1 = (EditText) findViewById(R.id.etInput1); 
getInput1.getText(); 

EditText getInput2 = (EditText) findViewById(R.id.etInput2); 
getInput2.getText();

EditText getInput3 = (EditText) findViewById(R.id.etInput3); 
getInput3.getText(); 

if (getInput1!= null &amp;&amp; !getInput1.equals ("")){
float answer3 = Float.valueOf(getInput3.getText().toString());
float answer2 = Float.valueOf(getInput2.getText().toString());
float answer= answer2/answer3;
textOut1.setText(String.valueOf(answer));} 

if (getInput2!= null &amp;&amp; !getInput2.equals ("")){
float answer1 = Float.valueOf(getInput1.getText().toString());
float answer3 = Float.valueOf(getInput3.getText().toString());
float answer= answer1*answer3;
textOut1.setText(String.valueOf(answer));}

if (getInput3!= null &amp;&amp; !getInput3.equals ("")){
float answer1 = Float.valueOf(getInput1.getText().toString());
float answer2 = Float.valueOf(getInput2.getText().toString());
float answer= answer2/answer1;
textOut1.setText(String.valueOf(answer));
} }
});
};
}


08-13 17:18:14.715: INFO/[POST_RESELECT](7631): [handleTextChanged] (start,before,after)=(0,1,1)
08-13 17:18:14.745: DEBUG/dalvikvm(1524): GC_EXPLICIT freed 74K, 49% free 3514K/6855K, external 6983K/7035K, paused 36ms
08-13 17:18:14.795: DEBUG/SurfaceFlinger(1358): layer=0xa9b428 is not in the purgatory list
08-13 17:18:16.386: DEBUG/StatusBarPolicy(1480): onSignalStrengthsChanged
08-13 17:18:19.149: INFO/Log(7631): Error
08-13 17:18:19.149: DEBUG/AndroidRuntime(7631): Shutting down VM
08-13 17:18:19.149: WARN/dalvikvm(7631): threadid=1: thread exiting with uncaught exception (group=0x4001d5a0)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631): FATAL EXCEPTION: main
08-13 17:18:19.169: ERROR/AndroidRuntime(7631): java.lang.NumberFormatException: 
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at org.apache.harmony.luni.util.FloatingPointParser.parseFloat(FloatingPointParser.java:305)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at java.lang.Float.parseFloat(Float.java:323)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at java.lang.Float.valueOf(Float.java:362)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at com.easyPhys.start.velocity$1.onClick(velocity.java:76)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at android.view.View.performClick(View.java:2532)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at android.view.View$PerformClick.run(View.java:9277)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at android.os.Handler.handleCallback(Handler.java:587)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at android.os.Handler.dispatchMessage(Handler.java:92)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at android.os.Looper.loop(Looper.java:143)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at android.app.ActivityThread.main(ActivityThread.java:4196)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at java.lang.reflect.Method.invokeNative(Native Method)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at java.lang.reflect.Method.invoke(Method.java:507)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
08-13 17:18:19.169: ERROR/AndroidRuntime(7631):     at dalvik.system.NativeStart.main(Native Method)
08-13 17:18:19.169: WARN/ActivityManager(1358):   Force finishing activity com.easyPhys.start/.velocity
08-13 17:18:19.229: DEBUG/Sensors(1358): Enable akm: en = 1
08-13 17:18:19.229: DEBUG/SensorService(1358): noteStartSensor: uid = 0x3e8, handle = 0x0
08-13 17:18:19.249: DEBUG/AK8975(1245): Compass Start
08-13 17:18:19.379: DEBUG/StatusBarPolicy(1480): onSignalStrengthsChanged
08-13 17:18:19.680: WARN/ActivityManager(1358): Activity pause timeout for HistoryRecord{40bcbe78 com.easyPhys.start/.velocity}
08-13 17:18:19.740: DEBUG/Sensors(1358): Enable akm: en = 0
08-13 17:18:19.740: DEBUG/SensorService(1358): noteStopSensor: uid = 0x3e8, handle = 0x0
08-13 17:18:19.940: DEBUG/AK8975(1245): Compass CLOSE 
08-13 17:18:29.189: WARN/ActivityManager(1358): Launch timeout has expired, giving up wake lock!
08-13 17:18:29.749: WARN/ActivityManager(1358): Activity idle timeout for HistoryRecord{40a9e390 com.easyPhys.start/.mechanics}
08-13 17:18:31.391: DEBUG/StatusBarPolicy(1480): onSignalStrengthsChanged
08-13 17:18:34.904: WARN/ActivityManager(1358): Activity destroy timeout for HistoryRecord{40bcbe78 com.easyPhys.start/.velocity}
08-13 17:18:36.456: DEBUG/dalvikvm(1634): GC_EXPLICIT freed 5K, 50% free 2719K/5379K, external 0K/0K, paused 56ms
08-13 17:18:41.481: DEBUG/dalvikvm(7362): GC_EXPLICIT freed 48K, 50% free 2715K/5379K, external 0K/0K, paused 61ms
08-13 17:18:46.466: DEBUG/dalvikvm(7514): GC_EXPLICIT freed 56K, 50% free 2710K/5379K, external 0K/0K, paused 54ms
</code></pre>

<p>separately they are working good but after using all of them my app shows "force close". What could be a problem?</p>
