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 and Variables

Rafael Almeida
Rafael Almeida
1,365 Points

Differences between courses taken

So I've already made a Intro to Java course in another site but to reinforce my skills I've decided to do this one too before going deeper. So I've noticed that there are some differences in the way I used to print something in the other course and in this one.

Ex: Other course : System.out.println("Hello, my name is Rafael"); tree house course: console.printf("Hello, my name is Rafael");

Why is there this difference between courses? Isn't the same JAVA language?

1 Answer

Ruud Claassen
Ruud Claassen
9,359 Points

There are some differences, but Treehouse will also use the System.out variant eventually (when we move out of the basics in the console).

Another user on Treehouse explained this (Google is your best friend ;)): https://teamtreehouse.com/community/what-is-the-difference-between-systemoutprint-and-consoleprintf