4.给定一个整型数组, 判定数组是否有序;
package gyy;
public class yinger1{
public static void main(String[] args) {
int arr[]= {
1,2,3,4,5,6,7,8,9};
System.out.print(aligned(arr));
}
public static boolean
4.给定一个整型数组, 判定数组是否有序;
package gyy;
public class yinger1{
public static void main(String[] args) {
int arr[]= {
1,2,3,4,5,6,7,8,9};
System.out.print(aligned(arr));
}
public static boolean