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 trialCole Sadler
6,190 PointsHelp TreeStory.java:31: error: variable noun is already defined in method
TreeStory.java:31: error: variable noun is already defined in method main(String[])
String noun = console.readLine("Enter a noun: ");
^
1 error
1 Answer
juanboniowski
4,668 PointsYou must have string noun declared else where. You could change that variable's name eg string noun2=blah or remove the type eg noun=blah
Kourosh Raeen
23,733 PointsKourosh Raeen
23,733 PointsCan you post your code?