работает, но не проходит первое условие проверки, подскажите почему?
package com.javarush.task.pro.task05.task0506;
import java.util.Scanner;
/*
Минимальное из N чисел
*/
public class Solution {
public static int[] array;
public static void main(String[] args) {
//напишите тут ваш код
Scanner sca = new Scanner(System.in);
int n = sca.nextInt();
int[] asd = new int[n];
for(int i=0; i<n; i++){
asd[i]= sca.nextInt();
}
int min = Integer.MAX_VALUE;
for(int i=0; i<n; i++){
if(min > asd[i] ){
min = asd[i];
}
}
System.out.println(min);
}
}