[Solved] Object created from a list of values
I think this is what you need.I have commented the code for your understanding import java.util.ArrayList; import java.util.List; public class demo { public static void main(String[]args){ List<Integer>list1=new ArrayList<Integer>(); List<Integer>list2=new ArrayList<Integer>(); List<Integer>list3=new ArrayList<Integer>(); ////here add your values to the list,i have not added them.You first need to add the values to the list //then iterate through … Read more