MCPcopy
hub / github.com/DuGuQiuBai/Java / printArray

Method printArray

day02/code/04_数据类型/MyArrayTest.java:21–30  ·  view source on GitHub ↗
(int[] arr)

Source from the content-addressed store, hash-verified

19
20 //����
21 public static void printArray(int[] arr) {
22 System.out.print("[");
23 for (int i=0; i<arr.length; i++) {
24 if (i <= arr.length-1) {
25 System.out.print(arr[i] +", ");
26 }
27 System.out.print(arr[i]);
28 }
29 System.out.println("]");
30 }
31
32 //��ֵ
33 public static int getMax(int[] arr) {

Callers

nothing calls this directly

Calls 1

printMethod · 0.80

Tested by

no test coverage detected