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

I don't really know what is going on with the treet...

import java.util.Date;
import com.teamtreehouse.Treet;

public class Example {

public static void main(String[] args){
Treet treet = new Treet(
"realDonaldTrump",
  "I will be watching the election results"+
  "from Trump Tower in Manhattan with my"
  +"family and friends. Very exciting!",
  new Date(1478697478000L));
  System.out.printf("This is a new Treet: %s %n",treet);

}
}

okay as i'm learning trump won the elections so i wanted to make this one memorable, however, the treet i'm getting is something i should be worried about?? what does it mean? This is a new Treet: com.teamtreehouse.Treet@6d06d69c

1 Answer

Lucas,

I wouldn't worry too much about what is being returned to the screen it is explained in full in one of the following lessons. Essentially because treet in your code is an instance of an object when you print it you get the reference to it, rather than its contents.

Hope this helps.