一个关于时间加减的问题. 请问题高手:今天时间已经知道.如何通过加一个值而得到明天的时间呢. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Date todayDate = new Date(); Date tomorrowDate = new Date(); todayDate.getTime(); SimpleDateFormat sdf = new SimpleDateFormat("",Locale.CHINESE); sdf.applyPattern("yyyy年MM月dd日_HH点mm分ss秒"); String timeStr = sdf.format(todayDate); System.out.print("Today time is:" + timeStr +"\r\n"); todayDate.setDate(todayDate.getDate()+1); tomorrowDate = todayDate; timeStr = sdf.format(tomorrowDate); System.out.print("Tomorrow time is:" + timeStr); http://jinxinxin_bear_os.download.csdn.net/ 一个字符串www+=空值的null后 为什么就表成wwwnull了 各位大哥,看看我的程序,为什么运行不成功 定义JLabel类数组,运行出现异常 怎么判断从数据库中查到的结果集为空?? 谁有串口的驱动? eclipse比Gel强在哪里? 推拉技术 哪里有sun.awt.*的说明文档? 关于JNI的问题?(急!!!) 推送技术 线程间通信的问题
Date tomorrowDate = new Date();
todayDate.getTime();
SimpleDateFormat sdf = new SimpleDateFormat("",Locale.CHINESE);
sdf.applyPattern("yyyy年MM月dd日_HH点mm分ss秒");
String timeStr = sdf.format(todayDate);
System.out.print("Today time is:" + timeStr +"\r\n");
todayDate.setDate(todayDate.getDate()+1);
tomorrowDate = todayDate;
timeStr = sdf.format(tomorrowDate);
System.out.print("Tomorrow time is:" + timeStr);