import java.util.Arrays;
public class TestSort {
public static void main(String[] args) {
Comparable[] compList;
compList = new Comparable[4];
compList[0] = "Bob";
compList[1] = "Dan";
compList[2] = "Alice";
compList[3] = "Chuck";
System.out.println(compList);
}
}
This prints out the ascii codes and I cant figure out why. I'm just trying to print out the the names in order. If anyone could help me out I would be very appriciative.