0

When converting custom object list to string using toString method it increases performance time

list<CustomObject> list;

JSONArray array = new JSONArray(list.toString());

  • What do you mean by "increases performance time"? What exactly do you want to achieve? For most situations, `List.toString` is not suitable. But we need to know more. – McPringle Oct 01 '22 at 18:19
  • Performance time refers to time complexity..do we have other way to achieve same task in minimum time complexity – danceAyush Oct 02 '22 at 20:07

0 Answers0