MCPcopy Create free account
hub / github.com/Manvityagi/PW-Skills-Java-Course-Codes / main

Method main

Lecture 15 Arrays/src/App.java:19–39  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

17 }
18
19 public static void main(String[] args) {
20 int a = 5;
21 changeVal(a);
22 System.out.println(a); // 5
23
24 int[] arr = new int[3];
25 arr[0] = 5;
26 arr[1] = 8;
27 arr[2] = 7;
28
29 changeArray(arr);
30 printArray(arr);
31
32 boolean ans = true;
33 for (int i = 1; i < arr.length; i++){
34 if(arr[i] < arr[i-1]){
35 ans = false;
36 }
37 }
38 System.out.println(ans);
39 }
40}

Callers

nothing calls this directly

Calls 3

changeValMethod · 0.95
changeArrayMethod · 0.95
printArrayMethod · 0.95

Tested by

no test coverage detected