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
Check you have the line:
import org.json.JSONArray;
at the top of your source code