日期:2014-05-20 浏览次数:20610 次
public static void main(String[] agrs)
{
int[] array = {1, 2, 3, 4, 5};
String x = Arrays.toString(array);
System.out.println(x);
String numString = x.substring(1, x.length()-1).replaceAll("\\s+", "");
String[] ob = numString.split(",");
for(String str:ob)
{
System.out.println(str);
}
}