I tried with the below code to convert List<String>
to String[]
List<String> input = new ArrayList<String>();
input.add("100");
input.add("101");
System.out.println(input);
String[] size = new String[input.size()];
size = input.toArray(size);
System.out.println(size);
But this one prints as ["100","101"] not as required by me {"100","101"}. . ? I then used GSON to acheive the desired output.