import javax.swing.JOptionPane;
class Season
{
public static void main(String args[])
{
String input1;
int month;
input1 = JOptionPane.showInputDialog("輸入判別月份");
month = Integer.parseInt(input1);
if (month >=2 && month <=4)
{
JOptionPane.showInputDialog(null,"輸入月份為 "+month+"月");
}
}
}
全站熱搜