question: private static OptimizationPlanElement [ ] toArray ( ArrayList < OptimizationPlanElement > planElementList ) { OptimizationPlanElement [ ] p = new OptimizationPlanElement [ planElementList . size ( ) ] ; planElementList . toArray ( p ) ; return p ; }
target:  Convert the ArrayList to an array of elements.