add dialogs, fix code completion

This commit is contained in:
hyb1996
2017-05-08 15:22:01 +08:00
parent 472bd46b87
commit 0349c113ca
40 changed files with 958 additions and 158 deletions

View File

@@ -0,0 +1,26 @@
package com.stardust.util;
/**
* Created by Stardust on 2017/5/8.
*/
public class ArrayUtils {
public static Integer[] box(int[] array) {
Integer[] box = new Integer[array.length];
for (int i = 0; i < array.length; i++) {
box[i] = array[i];
}
return box;
}
public static int[] unbox(Integer[] array) {
int[] unbox = new int[array.length];
for (int i = 0; i < array.length; i++) {
unbox[i] = array[i];
}
return unbox;
}
}