我不知道爲什麼這些解決方案無法正常工作。將可編輯轉換爲字符串
我需要編輯轉換爲字符串
該解決方案不工作:
Editable ploshad =editTextPloshad.getText();
String ploshadNew=ploshad.toString();
這
Editable ploshad =editTextPloshad.getText();
String ploshadNew=(String)ploshad.toString();
ploshadNew不是字符串
你會得到什麼? – Renjith
這是什麼?向我們展示您正在使用的可編輯的軟件包。 – shkschneider
嘗試String.valueOf(); – Nitin