79078308

Date: 2024-10-11 12:56:28
Score: 4.5
Natty:
Report link

I am a beginner in Java and I am trying to use JOptionPane to display a message box but keep getting stuck with an error which I cannot figure out. i also have the same problem |

This is my code:

package mysecondProgramn; import javax.swing.JOptionPane;

public class second {

public static void main(String[] args) {
      int testVal = 20;
        JOptionPane.showMessageDialog(null, "The number is " + testVal);
}

}

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (0.5): I cannot
  • Has code block (-0.5):
  • Me too answer (2.5): i also have the same problem
  • Low reputation (1):
Posted by: Sayed Hasan