1. StrngBuffer类
StringBuffer buffer = new StringBuffer();
buffer.append("world"); // world
buffer.insert(0,"hello"); // 在指定位置添加,helloworld
buffer.reverse().toString(); // 反转,再转化为String dlrowolleh
buffer.replace(int start,int end String str) // 指定内容替换
buffer.delete(int start,int end) // 删除
2. Runtime 类
Runtime runtime = Runtime.getRuntime(); // 获得Runtime实例
runtime.gc() ; // 进行垃圾回收,释放空间
Process pro; //声明一个Process对象,进程
pro = runtime.execute("qq.exe") //调用本机程序,需捕获异常
pro.destory(); //结束进程
3. System类
System.currentTimeMillis(); // 返回以毫秒为单位的当前时间
System.getProperties(); // 返回当前系统的全部属性
4. Random类,
获取随机数
Random random = new Random();
random.nextInt(100); // 随机生成100内的int类型整数
5. NumberFormat 对数字进行格式化
DecimalFormat 可使用指定定义方式进行格式化操作,比NumberFormat灵活
6. BigInterger类
7. BigDecimal,对数字进行精确计算时,用BigDecimal类。
8. Arrays类
9. Comparable比较器接口
10. 正则表达式 Pattern类和Matcher类
11. String对正则表达式的支持
boolean matches(String regex);
String replaceAll(String regex,String str);
String[] split(String regex);
12. 定时调度Timer和TimerTask类。