import java.util.*; class UseArrays20 // Demonstrates a method which returns the largest integer in an array. // Uses binary recursion, and demonstrates the conditional operator. { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter some numbers (all on one line, separated by spaces):"); String line = input.nextLine(); String[] numbers = line.split(" +"); int[] a = new int[numbers.length]; for(int i=0; ia[from+1] ? a[from] : a[from+1]; else { int mid=(from+to+1)/2; int biggest1=biggest(a,from,mid); int biggest2=biggest(a,mid,to); return biggest1>biggest2 ? biggest1 : biggest2; } } }