Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAbe Daniels
Courses Plus Student 2,781 PointsApparently, java can't find my symbol. What should i do?
Console console = System.console(); In that line of code, it points to the capital "C" of console. What is the issue here? It looks just like Craig's code.
1 Answer
jacobproffer
24,604 PointsHey Abe,
Did you remember to import the Console library? It should look like this at the top of the Prompter class:
import java.io.Console;
Best,
Jacob
Arshan Khanifar
11,497 PointsArshan Khanifar
11,497 PointsI've got the same problem except for the arrow that points to the dot between System and console at System.console();
I've already imported java.io.Console; what's the problem then!?!? o and btw I get this message:
./Prompter.java:11: error: cannot find symbol
Console console = new System.console();
symbol: class console
location: class System