public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Calendar a = Calendar.getInstance();
int datenum=a.get(Calendar.DATE);
System.out.println(datenum);
System.out.println(datenum<3);
}
}
结果
27
false
public static void main(String[] args) {
// TODO Auto-generated method stub
Calendar a = Calendar.getInstance();
int datenum=a.get(Calendar.DATE);
System.out.println(datenum);
System.out.println(datenum<3);
}
}
结果
27
false