question: private < T > Collection < T > convert ( Enumeration < T > iter ) { List < T > list = new ArrayList < > ( ) ; while ( iter . hasMoreElements ( ) ) list . add ( iter . nextElement ( ) ) ; return list ; }
target:  Convert data to collection.