Selection sort implementes still all test case not passed

please tell me whch all test cases are not getting passed , as i have written proper selection sort

Hey @1999atrijsharma
Just a changes inside the code :
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int name[]=new int[n];
for(int i=0;i<n;i++)
name[i]=sc.nextInt();
for(int count=0;count<n;count++)
{ int min=count;
for(int j=count;j<name.length;j++) // name length -1 is not true
{
if(name[j]<name[min])
{
min=j;
}
}
int temp=name[count];
name[count]=name[min];
name[min]=temp;
}
for(int i=0;i<n;i++)
System.out.println(name[i]);
}
}