0

Hi guys,

I'm trying to write a recursive method that checks if the first elements of an array of integers are sorted in ascending order but it didn't work for me !!

`public static Boolean isSorted(int [] a, int n){}`

I tried to copy elements from array a with length n into another array b then , compare every two elements starting from b[0] and b[1] such that :

```
if (b[0] < b[1] ) // that means those elements are in ascending order
{ return true;
}
```

but I couldn't complete it ,, could anyone please help me :(