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

PARSING INTEGERS HELP!

Hello. I'm watching the Parsing Integers video in the Java course. I don't know what Craig Dennis pressed in the console at 2:15 to see what he saw. It sounded like he said compile and run. But I don't know what he pressed. If you don't mind looking at about 10-20 seconds worth of video to help me out it would be GREATLY appreciated.

2 Answers

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Hi Adam!

Sorry yeah I just saved it and then I did pressed the up arrow, which circles through your history of commands. The commands that got typed were:

clear && javac TreeStory.java && java TreeStory

Hope it helps!

Now I'm having an issue with this last task. I don't know what I've done wrong.

// I have imported a java.io.Console for you, it is named console. 
String firstExample = "hello";
String secondExample = "hello";
String thirdExample = "HELLO";
if (firstExample.equals(secondExample))console.printf("first is equal to second");
if (firstExample.equalIgnoreCase(thirdExample))console.printf("first and third are the same ignoring case");

Nevermind, I Got It! :) Thanks

That helps! I'm actually starting to understand all of this a little better. Thanks superstar!