Hello. I retrieve float variable from Json Object and it's works wonderful.
float grade = Float.parseFloat(root.getString("grade_json));
The problem is that sometimes, there are no grade, and the value inside grade_json is "N/A" and i get an error.
How can i solve this problem? I want to put Null into grade and continue the app.
Thank you
float grade = Float.parseFloat(root.getString("grade_json));
The problem is that sometimes, there are no grade, and the value inside grade_json is "N/A" and i get an error.
How can i solve this problem? I want to put Null into grade and continue the app.
Thank you
Last edited: