if(jsonArray.getJSONObject(i).get("SECNO").toString()!=null && jsonArray.getJSONObject(i).get("SECNO").toString().trim()!="")
appointment.mSecNo =Integer.parseInt(jsonArray.getJSONObject(i).get("SECNO").toString());
else
appointment.mSecNo = -1;
在previouse線,爲整數時的jsonArray.getJSONObject(i).get("SECNO").toString()
equales爲「」值不被if語句抓到..解析空字符串在java中
,我得到這個錯誤信息。 。can't parse '' to integer