摘要:
import java.util.*;public class DateA{public static void main(String []abc){int y,m,d,h,mi,s;Calendar cal=Calendar.getInstance();y=cal.get(Calendar.YEAR);m=cal.get(Calendar.MONTH);d=cal.get(Calendar.DATE);h=cal.get(Calendar.HOUR_OF_DAY);mi=cal.get(Calendar.MINUTE);s=cal.get(Calendar.SECOND);System.o 阅读全文
摘要:
import java.util.*;public class Test{ public static void main(String[] args){ int year=0; int moth=0; int day=0; Calendar c=Calendar.getInstance();//获得系统当前日期 year=c.get(Calendar.YEAR); month=c.get(Calendar.MONTH)+1;//系统日期从0开始算起 day=c.get(Calendar.D... 阅读全文