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

So i'm already stumped. I know i'm making a mistake somewhere, however the "preview" doesn't make it any clearer as to

I'm lost and doing something wrong. Either I have no ability to learn coding or this class is just like all the others I have taken and throws you off a cliff and tells you to fly. The "preview" i'm sure can tell me what i'm doing wrong, however I have little ability to interpret the error codes. Did I miss a basics class somewhere?

Name.java
// I have setup a java.io.Console object for you named console

String firstName = "JoE";
console.Printf("%s can code Java!\n",firstName);

4 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Joseph;

Welcome to Treehouse!

Task 2 doesn't require the string formatter, but you can use it if you like. The other issue is that you have capitalized Printf and it needs to be printf.

Happy coding,

Ken

Rob Bridges
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Rob Bridges
Full Stack JavaScript Techdegree Graduate 35,467 Points

Hey There Joseph,

your code is good, there's just a typo in this. the console.printf() command has a lower case p in print, fix this and your code passes just fine.

Thanks.

You're fine and in the right place. Java is case sensitive so you have to memorize the case as well as the command. Hang tight. It gets easier when you start using advanced tools and I'm grateful for the nitty-gritty the courses start with, because working backwards, ie reverse engineering, isn't as fun as it once was.

Ken Alger
Ken Alger
Treehouse Teacher

Michael;

Was reverse engineering ever that much fun? :wink:

Ken

I appreciate all the help. I'm in a pretty rough spot in life right now and i'm pushing myself a little hard to pick up coding. I've wanted to for years, but now i'm finding that it might be the easiest way for me to get back to having a career in something that isn't seasonal. I'm sure this wont be the last time I contemplate biting my keyboard.

Ken Alger
Ken Alger
Treehouse Teacher

Joseph;

I'm sure it won't be the last time you get frustrated, yes. That is one great thing about the Treehouse forum, we have all been in the same spot and are here to assist as needed. Sometimes the assistance isn't immediate, but keep checking in. There is a lot of support along the way here on the forum.

Happy coding and congratulations on working towards a new career. That is a huge leap!

Ken