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 Data Structures - Retired Getting There Packages

Kasey Domer
Kasey 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?

com/example/BlogPost.java
package com.example;

public class BlogPost {
}
Display.java
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
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Kasey,

You've got it all :thumbsup: 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! :) :dizzy:

Kasey Domer
Kasey Domer
787 Points

Ahh, I should have realized that "System" in system.out.printf was referring to the package. Thank you!