import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {

    static boolean isARRAYincreasing( int A[]){
        int n = A.length ;

        for(int i=1 ; i<n ; i++){

            if(A[i] >= A[i-1]){
                
            }
            else{
                return false ;
            }
        }
        return true ;
    }



    
    public static void main(String[] args) {
        int arr[] = {2,2,2,13,14,15};
        System.out.println(isARRAYincreasing(arr));
            
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: