当前位置: 技术问答>java相关
100 分,高手和熟练者请进,这是java.util.Calendar的Bug吗?
来源: 互联网 发布时间:2015-10-08
本文导语: 测试文件: import java.util.*; public class TestJCalendar { public static void main(String args[]) { Calendar calendar = null; calendar = Calendar.getInstance(); Date trialTime = new Date(); ...
测试文件:
import java.util.*;
public class TestJCalendar {
public static void main(String args[]) {
Calendar calendar = null;
calendar = Calendar.getInstance();
Date trialTime = new Date();
calendar.setTime(trialTime);
for(int i =n; i
import java.util.*;
public class TestJCalendar {
public static void main(String args[]) {
Calendar calendar = null;
calendar = Calendar.getInstance();
Date trialTime = new Date();
calendar.setTime(trialTime);
for(int i =n; i