尝试:
import java.text.DateFormatSymbols;monthString = new DateFormatSymbols().getMonths()[month-1];
另外,您可以使用SimpleDateFormat:
import java.text.SimpleDateFormat;System.out.println(new SimpleDateFormat("MMMM").format(date));(
Date要使用第二个选项,您必须在对象中添加日期和月份)。



