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

miles higgins
miles higgins
2,104 Points

you guys have given no help here with figuring out whats wrong with your code. Considering this is entrylevel to java

it would be nice if you could give help to figuring out what your asking for but all i can do is go back to the video and start over 5 times. This is a entry level to java it should give more hints to what your asking for and even write the code in when you get stuck. I cant even get passed the first lesson and feel pretty stupid and ready to move onto another code because i have no help to move forward. i understand that it wants me to use %s to replace my name but when i enter that in it obviously is missing something. My only option is to go back to the video and see if i can figure it out and come back to completely start over with the code. there has to be a better approach to teaching the lesson then leaving iton your own all to memory

Name.java
// I have setup a java.io.Console object for you named console
String firstName = "Miles";
console.printf
console.printf("can code in java");

3 Answers

try this:

String firstName = "Miles";
console.printf("%s can code in Java!", firstName);
miles higgins
miles higgins
2,104 Points

thank you! im finding it is super hard to continue working or moving forward anywhere you might get stuck because you have to completely start over to take a step back. In older videos it would give you more info when you get stuck that i could work my way through it. It should let you see the teachers notes when you get stuck too

Can you please provide a Best answer for Ivan? Thanks!

It will put a check mark next to your question representing "This question is answered!". It also gives a bonus 12+ points for the person who receives the best answer.

Thanks again! :smile: