1) Random,生成随机数
Random random = new Random();//由System.nanoTime()生成种子
random.nextDouble();//half-open range [0.0,1.0)
random.nextInt(100);//[0,100)
Random random1 = new Random(100L);//种子不变,每次运行生成的随机数序列不变
double decimal = Math.random();//使用Random静态常量
2)Math
Math.sqrt(4.0);//return square root
Math.cbrt(8.0);//return cube root
Math.pow(2.0, 0.5);//return the result of raising x to the power of y
Math.abs(-2.0);//return the absolute value
Math.ceil(3.5);//greater than or equal to the argument
Math.floor(3.5);//less than or equal to the argument
3) TextUtils
String[] names = {"Victor", "Nice", "Rose", "Smith"};
TextUtils.join(",", names);//Victor,Nice,Rose,Smith
Collection<String> collection = new LinkedList<>();
collection.add("stamp");
collection.add("coin");
collection.add("painting");
collection.add("record");
TextUtils.join("|", collection);
CharSequence cs = "";
TextUtils.isEmpty(cs);//null or ""
TextUtils.equals("a", "b");
TextUtils.isDigitsOnly("123");//判断是否是数字