Java Java Data Structures Getting There Packages

Tony Williams
Tony Williams
2,665 Points

I don't understand why I am getting a syntax error. Does anyone see my issue? Thanks,

Thanks

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

public class BlogPost{

}
Display.java
import package 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

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 48,769 Points

Check the previous video @3:11 for the import statement

Tony Williams
Tony Williams
2,665 Points

ahhh Thanks, I see my error appreciate it