输入年月日输出该日期是当年的第几天的java答:public class Test { public static void main(String[] args) { int allday = 0; int[] days = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; Scanner read = new Scanner(System.in); System.out.print("请输入年月日,格式如:1970/01/01:"); ...