I\'m realy beginning to learn Java. When I run this code everything works fine till I leave my EditText boxes in the from empty and hit the run button. Then I get:
Another improvement:
String thisIsIt = new Double(tvSumIn).toString();
if(tvSumIn < 2){
noSum.setText(thisIsIt + " This is it ");
}else{
noSum.setText("This is else");
}
could be:
if(tvSumIn < 2){
noSum.setText(tvSumIn + " This is it ");
}else{
noSum.setText("This is else");
}
Then you don't have to create a useless String