请帮我做一个无限循环:在案例显示答案后,程序应该立即再次询问用户。
package calendartool;
import java.io.Console;
public class CalendarTool {
public static void main(String[] args) {
Console C = System.console();
int month = Integer.parseInt(C.readLine("Please put a valid month: \n"));
int year = Integer.parseInt(C.readLine("Please put a valid year: \n"));
switch (month) {
case 1:
System.out.println("The month is January!");
System.out.println("January has 31 days!");
break;
}
}
}