Question: int[] testArray = new int[] {98, 36, 45, 3, 123, 222, 68, 86, 2, 500, 1}; public void printTwoIntegers (int s, int e, int[]
![int[] testArray = new int[] {98, 36, 45, 3, 123, 222, 68,](https://dsd5zvtm8ll6.cloudfront.net/questions/2024/03/65eedf07b20af_1710156999390.jpg)
int[] testArray = new int[] {98, 36, 45, 3, 123, 222, 68, 86, 2, 500, 1}; public void printTwoIntegers (int s, int e, int[] array){ maxIndex = 0; minIndex = 0; for(int i=s; i array[i]){ } minIndex = i; System.out.println("the first integer is: "+array[minIndex]): for(int i = s; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
