我需要计算一个东西。但我的公式句子出现了一些问题。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