For this Question: Given an array A[], size N containing positive integers. You need to arrange the elements of array in increasing order using selection sort.First line of the input denotes number of test cases 'T'. First line of the test case is the size of array and second line consists of array elements.

Constraints:
1 <= T <= 100
1 <= N <= 10^3
1 <= A[i] <= 10^3For each testcase print the sorted array in a new line.Input:
2
5
4 1 3 9 7
10
10 9 8 7 6 5 4 3 2 1

Output:
1 3 4 7 9
1 2 3 4 5 6 7 8 9 10, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args) throws IOException {

					  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
					  int t = Integer.parseInt(br.readLine());
					  int n;
					  while(t>0) {
						  n = Integer.parseInt(br.readLine());
						  int a[] = new int[n];
						  String s = br.readLine();
						  String arr[] = s.split(" ");
						  for(int i=0;i<n;i++) {
							  a[i] = Integer.parseInt(arr[i]);
						  }
						  int b[] = sort(a);
						  for(int i=0;i<n;i++) {
							  System.out.print(b[i] + " ");
						  }
						  System.out.println();
						  t--;
					  }
	}
	static int[] sort(int[] a) {
		int temp, index;
		for(int i=0;i<a.length-1;i++) {
			index = i;
			for(int j=i+1;j<a.length;j++) {
				if(a[j]<a[index]) {
					index = j;
				}
			}
			temp = a[i];
			a[i] = a[index];
			a[index] = temp;
		}
		return a;
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?