forked from zfman/AlgorithmCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrayUtils.java
More file actions
24 lines (22 loc) · 547 Bytes
/
ArrayUtils.java
File metadata and controls
24 lines (22 loc) · 547 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package sort;
/**
* @author 刘壮飞
* https://github.com/zfman.
* https://blog.csdn.net/lzhuangfei.
*/
public class ArrayUtils {
public static <T> void printArray(T[] a){
if(a==null) return;
for(int i=0;i<a.length;i++){
System.out.print(a[i]+" ");
}
System.out.println();
}
public static <T> void printArray(T[] a,int start){
if(a==null) return;
for(int i=start;i<a.length;i++){
System.out.print(a[i]+" ");
}
System.out.println();
}
}