I can\'t get the array length of the JSON array. when I using length(); method it is not working, it show as red underline in Netbeans
this is the source code
Note: if you're using(importing) org.json.simple.JSONArray, you have to use JSONArray.size() to get the data you want. But use JSONArray.length() if you're using org.json.JSONArray.
org.json.simple.JSONArray
JSONArray.size()
JSONArray.length()
org.json.JSONArray