Skip to content
← Back to Community
cannot find symbol
Profile icon
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
Profile icon
EvelynRojas
Profile icon
AS-11WP-681307
Profile icon
DanielAkinshev
Profile icon
LewisSun
Comments
hotnewtop
Profile icon
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

Profile icon
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.

Profile icon
AnishChaudhary
Profile icon
AnishChaudhary

@mwilki7
tell him to import packages
i am noob right now and trying to go through algorithms