以下是我的JSONArray
数据如何将其转换为StringArray
?
private void getTextfromalledittext()
{
String textpoint[]=new String[editTextList.size()];
int i=0;
for(EditText editText:editTextList)
{
textpoint[i]=editText.getText().toString();
i++;
}
}
答案 0 :(得分:0)
这样的实现-
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));
}