摘要:
犯了一个很大的错误:String sample[]=null;sample[0]="hello";samlple[1]="world";直接就报异常了。记住了!!!正确的写法是:String sample[]=new String[2];sample[0]="hello";samlple[1]="world";//****************************************************************************************************** 阅读全文
posted @ 2013-11-14 10:14
王吉元
阅读(1390)
评论(0)
推荐(0)
摘要:
String转Date: SimpleDateFormat bartDateFormat = new SimpleDateFormat("MM-dd-yyyy"); String dateStringToParse = "9-29-2001"; Date date = bartDateFormat.parse(dateStringToParse); Date转String:SimpleDateFormat date = new SimpleDateFormat("yyyy-MM-dd");date.format(new Da... 阅读全文
posted @ 2013-11-14 09:40
王吉元
阅读(258)
评论(0)
推荐(0)
浙公网安备 33010602011771号