samedi 26 septembre 2015

JSON.simple: if statement won't process

My android app won't process my if statement. Here is my code:

JSONObject object = json.getJSONObject(0);
String description = object.get("string").toString();
if(object.get("string").toString() != "string") {
              ...
 } else {
          ...
        }`

Aucun commentaire:

Enregistrer un commentaire