我需要計算一個東西。但我的公式句子出現了一些問題。Android數學運算符
TextView ticketP = (TextView)findViewById (R.id.ticketQ);
ticketP.setText(oneSession.getTicketOder());
String Ctotal = "";
Ctotal = jsonObject.optString("price");
String OneTotal = oneSession.getTicketOder() * Ctotal; // this part has occur the problem which is the operator * .
你想爲其他東西乘以一個字符串嗎?我懷疑字符串乘法是定義,我懷疑你需要做Integer.parseInt第一 – sherpya 2012-02-23 17:50:34
你..謝謝你...問題解決 – 2012-02-23 18:05:03