How do I find out the last month and its year in Java?
e.g. If today is Oct. 10 2012, the result should be Month = 9
and Year = 2012
. If today is Jan. 10 2013, the result should be Month = 12
and Year = 2012
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…