in Count of Maximum cant find whats wrong in my code

import java.io.;
import java.util.
;
class countMax1
{
public static void main(String args[])throws Exception
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
PrintWriter pw=new PrintWriter(new OutputStreamWriter(System.out));
int t=Integer.parseInt(br.readLine());
for(int i=0;i<t;i++)
{
int n=Integer.parseInt(br.readLine());
int repv[]=new int[n];
int count[]=new int[n];
int val[]=new int[n];
StringTokenizer st=new StringTokenizer(br.readLine()," “);
for(int j=0;j<n;j++)
{
val[j]=Integer.parseInt(st.nextToken());
}
Arrays.sort(val);
for(int j=0;j<n;j++)
{
count[j]++;
}
int coun=0,flag=0;
for(int j=0;j<n;j++)
{
for(int k=j+1;k<=n-1;k++)
{
if(val[j]==val[k])
{
repv[coun]=val[j];
count[coun]=count[coun]+1;
flag=1;
}
}
if(flag==1)
{
flag=0;
coun++;
}
}
int max=0,ind=0,l=0;
flag=0;
for(int j=0;j<coun;j++)
{
if(count[j]>max)
{
max=count[j];
ind=j;
}
}
if(n==1)
{
repv[0]=val[0];
max=1;
}
pw.print(repv[ind]);
pw.print(” "+max);
if(i!=t-1)
pw.println();
}
pw.close();
}
}

give me the link of your code