Here there's a error in line 20 and i tried exploring whats wrong but on net the same soln is there

My issue

My code

import java.util.*;
class codechef
{
    public static void main(String args[])
    {
        Scanner sc  = new Scanner(System.in);
        int t = sc.nextInt();
        
        for(int i = 0 ;i < t ; i++)
        {
            int n = sc.nextInt();
            int a[] = new int[n];
            
            for(int l = 0 ; l<n ; l++)
            {
                a[l]= sc.nextInt();
            }
            
            List<Integer> arr = new ArrayList<>();
            arr = Arrays.asList(a);
            int min = Collections.min(arr);
            int c = 0 ; 
            
            for(int ele : arr)
            {
                if(ele>min)
                c++;
                
            }
            
        System.out.println(c);
            
            
            
            
            
            
            
            
        }
    
        
        
        
        
        
        
        
        
        
        
    }
    
    
    
}
    
    
    
    
    

Problem Link: OPMIN Problem - CodeChef