Help with a sort method
If i have an array of strings for example
Static final String[] TEST = new String[] {
"g","a","b","t","e" };
How would i go about sorting this in alphabetical order please?
import java.util.Arrays;
Arrays.sort(TEST);
Another example.
static final String[] TEST = "gabte".split("");
static {
Arrays.sort(TEST);
}
精彩评论