JAVA如何获取当前时间的第二天早上10点? 先通过函数得到本地时间(日期),然后自己定义一个时间,日期day+1,时间设为10点 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Calendar cal = Calendar.getInstance();cal.setTime(new Date());cal.add(Calendar.DAY_OF_YEAR, 1);cal.set(Calendar.HOUR_OF_DAY, 10);cal.set(Calendar.MINUTE, 0);cal.set(Calendar.SECOND, 0);System.out.println(cal.getTime()); Date date = new Date(); date.setDate(date.getDate()+1); date.setHours(10); date.setMinutes(0); date.setSeconds(0); DateFormat format = new SimpleDateFormat("yyyyMMdd hh:mm:ss"); String dateto = format.format(date); System.out.println(dateto); 回复于: 2013-11-23 15:44:47先通过函数得到本地时间(日期),然后自己定义一个时间,日期day+1,时间设为10点网上搜搜,有可用的代码 为何 Struts2 在运行action类的时候不会在console窗口输出错误信息? 小问题!急!在线等 help,ejb部署在weblogic失败~~~~~~~~ 求助做一个购物车 HTTP Status 404 各位行家.看看这个网站值多少钱?评价都有分 servlet的配置问题(搜了n多帖子,没解决)... java应用程序转换为exe? Web service提供接口如何获取action类session 请问这段信息是什么意思? 在线等.......... Ibatis 配置出问题了! jsp页面、ssh框架、如何实现用户注册时用DWR验证
Calendar cal = Calendar.getInstance();
cal.setTime(new Date());
cal.add(Calendar.DAY_OF_YEAR, 1);
cal.set(Calendar.HOUR_OF_DAY, 10);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
System.out.println(cal.getTime());
date.setDate(date.getDate()+1);
date.setHours(10);
date.setMinutes(0);
date.setSeconds(0);
DateFormat format = new SimpleDateFormat("yyyyMMdd hh:mm:ss");
String dateto = format.format(date);
System.out.println(dateto);
先通过函数得到本地时间(日期),然后自己定义一个时间,日期day+1,时间设为10点网上搜搜,有可用的代码