What is the mistake in form biggest number code of mine

import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
int i,j;
for(i=1;i<=t;i++)
{
int n=sc.nextInt();
int a[]=new int[n];
String b[]=new String[n];
for(j=0;j<n;j++)
{
a[j]=sc.nextInt();
b[j]=Integer.toString(a[j]);
}
Arrays.sort(b);
for(j=n-1;j>=0;j–)
{
System.out.print(b[j]);
}
System.out.println();
}
}
}

@rahul.parasmani,
For the input:
1
2
98 9
Your code will give 989 but the correct answer is 998

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.