Ask coding questions

← Back to all posts
cannot find symbol
LewisSun

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)

Voters
AS-11WP-681307
DanielAkinshev
LewisSun
Comments
hotnewtop
mwilki7

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

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