回顾 2
1.请列举String 类常用的方法?
2.对于String 和 StringBuffer 类,如果需要平凡的改变字符串的内容,使用哪个类?
3.请列举Math 类的常用方法
4.用SimpleDateFormat 类获取当前时间?
StringBuffer 类
charAt,indexOf,substring,replace,trim
abs,ceil,floor,max,min.round,random
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
System.out.println(sdf.format(new Date()));
评论0
最新资源