[*]移除元素
[*]字符串两种分隔方法
[*]模糊匹配字符串的方法
[*]Data转化为String
[*]获取当前日期
list.remove(index); list.clear();
[*]字符串两种分隔方法
String s = new String("2_8_7_4_3_9_1");
String[] arr = s.split("_");
利用StringTokenizer类:
String s = new String("2_8_7_4_3_9_1");
StringTokenizer commaToker = new StringTokenizer(s, "_");
String[] arr = new String[commaToker.countTokens()];
[*]模糊匹配字符串的方法
accview.getLoginName().indexOf(accViewSearch.getLoginName()) != -1
[*]Data转化为String
SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd");
String date = sDateFormat.format(pojo.getBirthday());
SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
String date = sDateFormat.format(pojo.getSubmitTime());
Date date = sDateFormat.parse("2008-08-08 12:10:12");
[*]获取当前日期
GregorianCalendar now = new GregorianCalendar();
now.getTime();