MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/Check_If_Sorted.java:4–8  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

2
3public class Check_If_Sorted {
4 public static void main(String[] args) {
5 int[] toCheck = {1, 2, 3, 5, 16, 8};
6 int pointer = 0;
7 System.out.println(checkIfSorted(toCheck, pointer));
8 }
9
10 private static boolean checkIfSorted(int[] toCheck, int pointer) {
11 if (pointer == toCheck.length - 1) {

Callers

nothing calls this directly

Calls 1

checkIfSortedMethod · 0.95

Tested by

no test coverage detected