Arrays.toString(hobby);如果hobby是数字的话,它输出是按什么顺序输出的呢?
public static void main(String[] args) {
String []hobby;
String[] hobbys = { 25,7,126,53 };
Arrays sort(hobby);
System.out.println(Arrays.toString(hobby));
}
// 使用Arrays类的toString()方法将数组转换为字符串并输出
System.out.println( Arrays.toString(hobby) );
}
}