Ask coding questions

← Back to all posts
cannot find symbol
LewisSun (0)

im not sure what is that, i'm learning, it work on teacher's example, but mine says cannot find symbol... teacher is not here but I need to finish...(im using mac)

Commentshotnewtop
mwilki7 (203)

You will need a Java Swing repl project in order to see the GUI elements of this program.
https://docs.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html

You should be able to create Java Swing projects on repl. If you want to paste your code to a new Java Swing project it should work granted the code works the way you want.

Geocube101 (258)

Cannot find symbol means that Java has no idea what you're trying to reference
In this case, it cannot figure out what JOptionPane is