MCPcopy Create free account
hub / github.com/Hazrat-Ali9/Computer-Programming / getMin

Method getMin

Problem5.java:18–27  ·  view source on GitHub ↗
(int[] inputArray)

Source from the content-addressed store, hash-verified

16 }
17
18 public static int getMin(int[] inputArray) {
19 int minValue = inputArray[0];
20
21 for (int i = 1; i < inputArray.length; i++) {
22 if (inputArray[i] < minValue) {
23 minValue = inputArray[i];
24 }
25 }
26 return minValue;
27 }
28
29 public static void main(String[] args) {
30 // TODO Auto-generated method stub

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected