Java Java Data Structures 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 144,349 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!