We have a list of String and would want to create an object using all elements in that list. List can have varying number of elements and hence creating an object might cau