-2

Following is my JSONArray data How do I convert this to a StringArray?

 private void getTextfromalledittext()
    {
       String textpoint[]=new String[editTextList.size()];
       int i=0;
       for(EditText editText:editTextList)
       {
            textpoint[i]=editText.getText().toString();
            i++;
       }

   }
3

1 Answer 1

0

Implement like this -

private void getTextfromalledittext(){
   String textpoint[]=new String[editTextList.size()];
   int i=0;
   for (EditText editText:editTextList) {
       textpoint[i]=editText.getText().toString();
       i++;
   }
   JSONArray jsonArray = new JSONArray(Arrays.asList(textpoint));
}
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.