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 trial
coder5837
1,535 Pointscan someone please start answering my questions
./PezDispenser.java:35: error: illegal start of expression
public String getCharacterName() {
^
./PezDispenser.java:35: error: ';' expected
public String getCharacterName() {
^
./PezDispenser.java:39: error: reached end of file while parsing
}
^
Example.java:8: error: cannot find symbol
dispenser.getCharacterName());
^
symbol: method getCharacterName()
location: variable dispenser of type PezDispenser
./PezDispenser.java:36: error: incompatible types: unexpected return val
ue
return mCharacterName;
^
5 errors
treehouse:~/workspace$ ^C
treehouse:~/workspace$ ^C
this is my errormessage but it was okay for the video before this and now its not working.
1 Answer
martinpatino2
4,741 PointsYou need to provide more details. A screenshot of your code would be helpful.
Farrah Dickerson
10,173 PointsFarrah Dickerson
10,173 PointsYes.