______ if(begin>end) return;
a=a^b;
b=b^a;
a=a^b;
public class MyDate {
public static int getDayOfYear(int year, int month, int day)
{
int [][]days=new int[][]{{0,31,29,31,30,31,30,31,31,30,31,30,31},{0,31,28,31,30,31,30,31,31,30,31,30,31}};
int flag =(year%4==0 && year%100!=0) || year%400 == 0 ? 1 : 0;
int sum = day ;
for(int i=0;i<month;i++) {
sum += days[flag][i];
}
return sum;
}
public static void main(String[] args) {
int l = getDayOfYear(1991, 2, 1);
System.out.println(l);
}
}
return ___f(m-1,n-1)+f(m-1,n)
import java.util.Scanner;
public class T {
private int maxNum;
public T(int maxNum) {
this.maxNum = maxNum;
}
public void print() {
for (int i = 1; i <= maxNum; i++) {
for (int j = 1; j <= i; j++) {
System.out.print(j);
System.out.print("*");
System.out.print(i);
System.out.print("=");
System.out.print(i * j);
System.out.print("\t");
}
System.out.println();
}
}
public static void main(String[] args) {
System.out.print("录入一个整数:");
Scanner input = new Scanner(System.in);
// 没有考虑判断输入的是否是整数。
int maxNum = input.nextInt();
new T(maxNum).print();
}
}
Date d= new Date();
Date a = sf.parse("1949-10-11");
long x = d.getTime()-a.getTime();
System.out.println(x/1000/(24*60*60));
import java.text.*;
import java.util.*;
public class time {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
Date d= new Date();
Date a= new Date();
Date a = sf.parse("1949-10-11");
Scanner input = new Scanner(System.in);
long x = d.getTime()-a.getTime();
System.out.println(x/1000/(24*60*60));
}
}