Assume that a filter data is written. For example, to obtain a given range of data in an array, write a method to remove data in the array, return a new array.
How to implement this method, one method is: import java.util. *; Public class zerodemo1 {// filter invrit is def [] FilterData (int indata [], int minval, int maxval) {// check parameters for errors if (indata == null) {throw new NullPointerException ( "indata is null");} if (maxval
// filter out value Not in the Range 1-10 int outdata1 [] = filterdata (INDATA, 1, 10); for (int II = 0; II