如何把editText的文字轉換成整數 語法:數值int = Integer.parseInt(文字); 範例: int b1; b1 = Integer.parseInt(ed1.getText().toString());