Hi, I am getting userInput from three editTexts and setting it to a TextView after multiplying.
This is the code :
float l = Float.parseFloat(etLength.getText().toString());
float b = Float.parseFloat(etBreadth.getText().toString());
float d = Float.parseFloat(etDepth.getText().toString());
pitSize.setText(String.valueOf(l * b * d));
If I type
0.52, then the code works, but if I type.52the App crashes with this exception :
java.lang.NumberFormatException: For input string: ".52"
Please let me know how to fix this Issue. Thanks