╭(`・ω・´)如下所示:
import java.util.Date;
import javax.swing.plaf.synth.SynthSpinnerUI;
public class hellojava {
public static void main(String[]args){
Date date = new Date();
String year = String.format("%tY",date);//年
String month = String.format("%tm", date);//月
String day = String.format("%td", date);//日
String a = String.format("%ta", date);//星期几
String b = String.format("%tj",date);//一年中第几天
String c = String.format("%td",date);//一个月第几天
String d = String.format("%tc",date);//全部信息
int i = Integer.parseInt(year);
int j = Integer.parseInt(b);
int all = 365;
if((i%4==0&&i%100!=0)||i%400==0)
all += 1;
System.out.println(year+"/"+month+"/"+day+"\t"+a);
System.out.println();
System.out.println(year+"年的第"+b+"天,"+month+"月的第"+c+"天,离"+(i+1)+"年还有"+(all - j)+"天");
System.out.println();
System.out.println(d);
System.out.println();
}
}