int n = Integer.parseInt (textView1.getText().toString());
如果需要取出的是double或float类型,只需将parseInt改为double或float如:
int n = Double.parseDouble (textView1.getText().getString());
int m = Float.parseFloat (textView1.getText().getString())
int n = Integer.parseInt (textView1.getText().toString());
如果需要取出的是double或float类型,只需将parseInt改为double或float如:
int n = Double.parseDouble (textView1.getText().getString());
int m = Float.parseFloat (textView1.getText().getString())