add: root_automator
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.stardust.util;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Stardust on 2017/5/8.
|
||||
*/
|
||||
@@ -23,4 +25,13 @@ public class ArrayUtils {
|
||||
}
|
||||
return unbox;
|
||||
}
|
||||
|
||||
public static String[] toStringArray(List<?> list) {
|
||||
int i = 0;
|
||||
String[] str = new String[list.size()];
|
||||
for (Object o : list) {
|
||||
str[i] = o == null ? null : o.toString();
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user