import javax.swing.*; public class EvalScore { public static void main(String[] args) {//... Input a score. String scoreStr = JOptionPane.showInputDialog(null, "Enter your score?"); int score = Integer.parseInt(scoreStr); //... Create a message. String comment; // Message to the user. if (score >= 60) { comment = "Not so bad"; } else { comment = "This is terrible"; } //... Output the message. JOptionPane.showMessageDialog(null, comment); } }