本帖最后由 Sword 于 2013-6-21 02:04 编辑
public class Test {
public static void main(String[] args) throws Exception {
String[] month={"一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"};
Calendar c=Calendar.getInstance();
int index=c.get(Calendar.MONTH);
System.out.println(month[index]);
}
} |