문제

can someone please help me, I am trying to do a simple quadratic equation app, and I can't figure out how to make the double variables get the value from the text inputed in the Edit text field

도움이 되었습니까?

해결책

Simply take the string value from the EditText and parse it to a Double.

double value = Double.parseDouble(myEditText.getText().toString());
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top