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+"月");
}
}
}

arrow
arrow
    全站熱搜

    a8909132 發表在 痞客邦 留言(0) 人氣()