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,

 

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!