Adding Array to Collections addAll()

Generally, in realtime, the names of the share holders etc, the programmer stores in the form an array. This array can be converted into a data structure with addAll() method of Collections class. addAll() method can also be used with a single element also. Following is the method signature static boolean addAll(Collection col1, Object obj1): …

Adding Array to Collections addAll() Read More »