ArrayProcessor - */ public static void...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
package lab09; p public class ArrayProcessor { p /** Replace each element in a series with its processed version. @param series Collect of elements to process. @param op Operation to perform on each element.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: */ public static void processElements(double series, ScalarOperation op) { for (int i = 0; i < series.length; i++) { series[i] = op.process(series[i]); } } }...
View Full Document

Ask a homework question - tutors are online