Вот такое решение, смотрел, что многие создают карту и заполняют ее вручную. Какое решение более приемлемое и есть ли более эффективное?
public class Solution {
public static void main(String[] args) throws IOException, ParseException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> monthIs = new ArrayList<>();
monthIs.add(reader.readLine());
monthIs.add("is the");
GregorianCalendar calendar = new GregorianCalendar();
SimpleDateFormat formatDate = new SimpleDateFormat("MMMM",Locale.ENGLISH);
calendar.setTime(formatDate.parse(monthIs.get(0)));
monthIs.add(Integer.toString(calendar.get(Calendar.MONTH)+1));
monthIs.add("month");
for (String s :monthIs) {
System.out.print(s+" ");
}
}
}