Why my code is giving wromg answer i tried in eclipse it worked

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

	 System.out.print(b);
	 System.out.println();
 }
}

}

@rahul.parasmani,
You need to print b element by element. System.out.print(b); prints the address of b

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.