android forced to transfer data type

double yuwen=Double.parseDouble(et1.getText().toString().trim());
There is originally a method parseDouble() in the Double class, which is used to convert a string to a Double.
For example, if you want to convert a string to an integer, the same method is used: int a=Integer.parseInt("");

Guess you like

Origin blog.csdn.net/weixin_44931166/article/details/96765686