How to read a String into a String array in java , I have the following code :
for (int i=0 ; i<=jArr2.length() ; i++ ) {
JSONObject jArrOb = jArr2.getJSONObject(i);
String empIDStr = jArrOb.getString("emp_id");
String[] plant_ID[i] = empIDStr;
}
The compiler shows an error stating that String cannot be read into String Array. I am basically moving the values of JSON object into a String Array.