Notes

int[] arrayOne = {1, 3, 5, 7, 9};
for (int i = 0; i < arrayOne.length; i+=2) {
    System.out.println(arrayOne[i]);
}
1
5
9
int[] myNumbers = new int[] {5, 3, 4, 1, 2};
int i = 0; 
int min = 0; 
public void arraySorter(int[] array) {
    for (int i = 1; i < array.length+1; i++) {
        for (int j = 0; j < array.length; j++) {
            if (i == array[j]) {
                System.out.println(i); 
            }
        }
    }
}

arraySorter(myNumbers);
1
2
3
4
5