Let suppose i have three different list of string type data which I fetched from a table (different Columns). Now I want to add these three lists like a table data in third list. Please suggest.
List<String> allData = new LinkedList<>();
List<String> list1 = new LinkedList<>();
List<String> list2 = new LinkedList<>();
List<String> list3 = new LinkedList<>();
list1.add("1");
list1.add("2");
list2.add("3");
list2.add("4");
list3.add("5");
list3.add("6");