Sorting array in Ascending order in Java

import java.util.TreeSet;


public class SortingAscending
{

@SuppressWarnings("unchecked")
public static void main(String[] args)
{
int[] num = {3,5,9,2,1,0,45,23,67,93};
TreeSet ts = new TreeSet();

for(int i = 0; i <>
{
ts.add(num[i]);
}
System.out.println("The numbers of the array set in ascending order are: "+ts);
}
}

We Are Founder..