<p><img alt="2.6 Write and test this method: boolean isSorted(int[] a) // returns true iff a[0] <= a[1] a[a.length-1] <-... <=" src="https://d2vlcm61l7u1fs.cloudfront.net/media%2Fa62%2Fa623e836-93f5-4dba-9e56-57ce0d74e831%2Fphpv2ZApc.png" style="height:59px;width:500px;" aria-describedby="d3f"/></p>2.6 Write and test this method: boolean isSorted(int[]