摘要:
public class Demo { /* * Java编程,打印昨天的当前时刻 */public static void main(String[] args){Calendar cal = Calendar.getInstance();cal.add(Calendar.DATE, -1);Date date = cal.getTime(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");String str = sdf.format(date);System.out.println 阅读全文
posted @ 2013-09-19 22:20
一个学渣
阅读(891)
评论(0)
推荐(0)