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 trialMargaret O'Neill
3,540 Pointserror message com.teamtreehouse does not exist. import com.teamtreehouse.Treet But i DID import that package.
I did import this package and pressed save. I even restarted workspaces to build it again from scratch.
import com.teamtreehouse.Treet; import java.util.Date;
public class Example{
public static void main(String[] args) {
Treet newTreet = new Treet(
"Craig Dennis",
"Want to be famous? Simply tweet about Java and use" +
" the hashtag #treet. I\'ll us your tweet in a new " +
"@treehouse course about data structures.",
new Date(1421849732000L)
);
}
}
Margaret O'Neill
3,540 Pointsi meant this... this is my code.
import com.teamtreehouse.Treet; import java.util.Date;
public class Example{
public static void main(String[] args) {
Treet newTreet = new Treet(
"Craig Dennis",
"Want to be famous? Simply tweet about Java and use" +
" the hashtag #treet. I\'ll us your tweet in a new " +
"@treehouse course about data structures.",
new Date(1421849732000L)
);
}
}
2 Answers
kheiferfuller
8,635 PointsI'm not sure I understand your question but in the com>teamtreehouse folder there is a treet.java folder that holds the tree.java file that you don't seem to be utilizing. Maybe that'll help. Do you think you could rework your question a little bit?
Claude Kiseke
796 PointsI had this issue also. In my Treet.java file I changed the order from
import java.util.Date;
package com.teamtreehouse;
to
package com.teamtreehouse;
import java.util.Date;
and it seemed to work fine!
Margaret O'Neill
3,540 PointsMargaret O'Neill
3,540 Pointsi meant this... this is my code.
import com.teamtreehouse.Treet; import java.util.Date;
public class Example{
}