Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
四月、六月、九月和十一月 有30天。
四月、六月、九月和十一月
有30天。
我希望由 30 天组成的月份在 java 中执行一些逻辑。
无论一个月有多少天,请检查您的月份是否在这里
public boolean isMyMonth(int month) { return ((month == Calendar.APRIL) || (month == Calendar.JUNE) || (month == Calendar.SEPTEMBER) || (month == Calendar.NOVEMBER) || ); }