import java.util.*; class UseArrays4 // Demonstrates finding the position of an integer in an array of integers // Checks from highest indexed to lowest. { public static void main(String[] args) throws Exception { 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; i=0 && a[i]!=n; i--) {} return i; } }