Сколько раз вы использовали выражение: JOptionPane.showMessageDialog?Если ваш ответ более одного раза, вернитесь и пересмотрите свой код, чтобы вы использовали только ОДИН JOptionPane.showMessageDialog
Подсказка: рассмотрите возможность использования переменной типа String с именем output
Code
if (кредит> = 120)
{
JOptionPane.showMessageDialog(null,"You've graduated!");
}//end if
else if(credit >= 90)
{
JOptionPane.showMessageDialog(null,"You're a senior.");
}//end if
else if(credit >= 60)
{
JOptionPane.showMessageDialog(null,"You're a junior.");
}//end if
else if(credit >= 30)
{
JOptionPane.showMessageDialog(null,"You're a sophomore.");
}//end if
else if(credit >=0)
{
JOptionPane.showMessageDialog(null,"You're a freshment.");
}//end if
else
{
JOptionPane.showMessageDialog(null,"invalid input");