`
qq1831108020
  • 浏览: 14679 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Java工作常用

 
阅读更多

//list迭代器

for(StOrg stOrg:list){

if(!stOrg.getId().equals(id)){
list1.add(stOrg);}

}

//string 转 int

i=Integer.parseInt(s);


//系统当前日期时间

Date now = new Date();
DateFormat df = new SimpleDateFormat( "MM/dd/yyyy HH:mm ");
System.out.println( "At the tone, the time is " + df.format(now));

//转换成字符串

SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd" );
String str = sdf.format(new Date());



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics