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

Java Java Basics Getting Started with Java Strings, Variables, and Formatting

shamika Geter
shamika Geter
109 Points

On the Java basics, track can't get pass the 2nd exercise. Not sure if it's me or if there's a bug. Please assist.

For the second exercise, I keep running into a "bummer" error and I'm not sure why. When I preview my example no errors come up. Then when I click check work it says "bummer". For that reason, I'm not sure if I'm doing the example wrong or if there is a bug. If I'm doing it wrong please somebody HELP. Thank you in advance.

Name.java
// I have setup a java.io.Console object for you named console
String firstname = "shamika";
console.printf("my name is shamika\n");

1 Answer

james south
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,271 Points

it's not a bug, you are not doing what the challenge asks. your variable names and string printouts need to be exactly what is asked, so firstname is wrong and my name is shamika is also wrong. your syntax is ok just do what they are asking.

shamika Geter
shamika Geter
109 Points

Thank you. I figured it out after doing it a few more times.