package practice; public class TestMain { public static void main(String[] args) { int[] ao = {50,18,97,63,56,3,71,85,54,34,9,62,45,94,66,65,7,19,22,86}; Integer[] a = new Integer[20]; for (int i = 0; i < a.length; i++) { a[i] = new Integer(ao[i]); }…