You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`import java.util.Scanner;
public class ArrayMethods
{
static Scanner kb = new Scanner (System.in);
public static void main(){
int[] arr = {12, 44, 13, 26, 24, 22, 33, 11, 25, 5, 37, 41};
int min = getSmallest(arr, 0, 6);
}
public static int getSmallest(int [] arr, int a, int b){
int minNum=arr[a];
for(int index = a + 1; a < b; a++)
if(arr[index] < minNum)
minNum = arr[index];
return minNum;
}
}
`
The text was updated successfully, but these errors were encountered:
`import java.util.Scanner;
public class ArrayMethods
{
static Scanner kb = new Scanner (System.in);
public static void main(){
int[] arr = {12, 44, 13, 26, 24, 22, 33, 11, 25, 5, 37, 41};
}
`
The text was updated successfully, but these errors were encountered: