// // read the data from file to array // import java.util.Scanner; class DataArray { public static void main(String[] args) { Scanner input = new Scanner(System.in); final int MAX = 500; int[] arr = new int[MAX]; int size = 0; // actual # of data while(input.hasNextInt()) { int temp = input.nextInt(); arr[size] = temp; size ++; } // man. arr with Half Half(arr, size); for(int i=0; i