....
I think the requirements are fulfilled, it doesn't understand this.
package en.codegym.task.pro.task13.task1318;
/*
Next month, please
*/
public class Solution {
public static void main(String[] args) {
System.out.println(getNextMonth(Month.JANUARY));
System.out.println(getNextMonth(Month.JULY));
}
public static Month getNextMonth(Month month) {
//write your code here
int ord = month.ordinal();
if(ord==12 ) ord=0 ; else ord++;
return month.values()[ord];
}
}