How to create lists dynamically using for loop in Java

You have String[] result already defined. Change

 List<String> result[i] = new ArrayList<String>();

to some another variable

Browse More Popular Posts

Leave a Comment