static boolean jeNeklesajici( int[] p ) { for( int i = 1; i < p.length; i++ ) { if( p[i-1] > p[i] ) { return false; } } return true; }