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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Bobby Hook](https://secure.gravatar.com/avatar/2d8319a09422cb5f0085e03bf4ae5387?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Bobby Hook
744 Pointsnon static error print
line 33 saying non static error print (string,object... cannot be referenced from static object. with a marker under the word name. it only show one error (line 33 is the line with the star in brackets)
String name = console.readLine("What is your name? "); String famous = console.readLine("Pick someone famous: "); String place = console.readLine("What is your favourite place? "); String meal = console.readLine("What is your favourite food? "); String feeling = console.readLine("Pick a feeling: "); String drink = console.readLine("What is your favourite drink? \n\n");
console.printf("\n \n -------------------%s's Story--------------------\n \n", name);
console.printf("One day in August %s was called be %s and %s asked if %s wanted to go for a nice meal. %s said yes i would love to go so %s picked up %s \n", name, famous, famous, name, name, famous, name);
((*)) Console.printf("They went to %s where they ate %s until %s felt really %s.", place, meal, name, feeling);
console.printf("After %s felt really %s %s took %s home and they had some really nice %s and %s was so happy!", name, feeling, famous, name, drink, name);
1 Answer
![rtholen](https://secure.gravatar.com/avatar/75663556eeac1d294748e5b8ba4ceef6?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
rtholen
Courses Plus Student 11,859 PointsIn the line you indicate has the error, you have Console capitalized. You should be using "console.printf()", with a lower case c, as you did everywhere else.
Bobby Hook
744 PointsBobby Hook
744 PointsI cannot believe im so stupid to miss that! I was staring at the code for ages. Thanks