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 trialKasey Domer
787 Points"Package System does not exist"
I get a compiler error telling me that the package system cannot be found. What am I doing wrong?
package com.example;
public class BlogPost {
}
import com.example.BlogPost;
public class Display {
public static void main(String[] args) {
BlogPost blogPost = new BlogPost();
system.out.printf("This is a blog post: %s", blogPost);
}
}
2 Answers
Jason Anders
Treehouse Moderator 145,860 PointsHi Kasey,
You've got it all except for a small typo. The package is System
with an upper-case "S", you mis-typed and have a lower-case one. Just fix that up and it's all good!
Nice Job! :)
Kasey Domer
787 PointsAhh, I should have realized that "System" in system.out.printf was referring to the package. Thank you!