Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以帮我吗,我正在尝试做一个简单的二次方程应用程序,但我不知道如何让双变量从编辑文本字段中输入的文本中获取值
只需从 EditText 中获取字符串值并将其解析为 Double。
double value = Double.parseDouble(myEditText.getText().toString());