java错误,找不到符号 import java.util.Vector;
import java.util.Collections;
import java.util.ArrayList;
//import java.util.*;
public class StringUtil
{
public static String[] stringSort(String [] s)
{
Vector<String> v = new Vector<String>();
for (int i = 0; i < s.length; i++)
{
v.add(s[i]);
}
Collections.sort(v);
return v.toArray(s);
}
}
class TestStringSort
{
public static void main(String[] args)
{
String[] s = new String[]{"book", "hello", "world", "enjoy"};
s=stringSort(s);
for (int i = 0; i < s.length; i++)
{
System.out.println(s[i]);
}
}
}求大神指导怎么改