class Arrays{ public static void main(String x[]) { char ch[] = {'a','e','i','o','u'}; // element at 4 = u int index = ch.length - 1; for(;index >= 0;) { System.out.println("The Array Element at "+index+" = "+ch[index]); index--; } } } ======================================= WAP IN JAVA TO SEARCH AN ELEMENT IN THE GIVEN ARRAY. [1,2,3,4,5,6,7,8,9,10] 99 ==> -1 6 ==> POSITION 5 import java.util.Scanner; class SearchElement{ public static void main(String[] args) { // define the array int[] a = {1,2,3,4,5,6,7,8,9,10}; Scanner obj = new Scanner(System.in); // Define the element what we want to search in the given array int se = obj.nextInt(); int f = 0,i = 0; // logic for searching an element in the given array using the for loop for(i = 0;i < a.length;i++) { if(a[i] == se) { f = 1; break; } else { f = 0; } } if(f == 1) { System.out.println("The Element found at: "+i); } else { System.out.println("Element not found."); } } } ======================================= WAP IN JAVA TO DEFINE AN INTEGER ARRAY IN RUN TIME AND PRINT THE INDIVIDUAL ELEMENTS OF AN ARRAY. import java.util.Scanner; class RunTimeArray{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int size; System.out.println("Enter the size of the array:"); size = sc.nextInt(); // declaring the integer array int[] a = new int[size]; System.out.println("Enter an integer array:"); for(int i = 0;i < size;++i) { a[i] = sc.nextInt(); } System.out.println("The Given Array is = "); for(int i = 0;i < size;i++) { System.out.print(a[i]+"\t"); } } } ======================================== WAP IN JAVA TO FIND THE LARGEST ELEMENT IN AN ARRAY. import java.util.Scanner; class FindLargest{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); // declaring the array int[] a = new int[7]; System.out.println("Enter an array:"); for(int i = 0;i < 7;++i) { a[i] = sc.nextInt(); } System.out.print("The Largest Element in the array = "); int max = a[0]; for(int i = 0;i < a.length;++i) { if(max < a[i]) { max = a[i]; } } System.out.println("The Largest Element = "+max); } } =================== WAP IN JAVA TO SORT THE ARRAY ELEMENTS: ======================================= class AscendingOrderSort{ public static void main(String[] x) { int a[] = {97,9,0,7,-1,79,2,19,17}; int temp = 0; System.out.println("Array Before the sorting is = "); for(int i = 0;i a[j]) { temp = a[i]; a[i] = a[j]; a[j] = temp; } } } System.out.println("The Array after the sorting = "); for(int i = 0;i