Java Java Data Structures Getting There Packages

I think my program is buggin

i get an error at line 95 with the source directory, can someone help?

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

public class BlogPost {
}
Display.java
package com.example;

import com.example.BlogPost;
public class Display {
  public static void main(String[] args) {

    BlogPost myeBlog = new BlogPost();
    System.out.printf("This is a blog post: %s", myeBlog);

  }
}

1 Answer

Rares Conea
PRO
Rares Conea
Pro Student 14,998 Points

Hi,

Remove the package declaration from Display class and it will work.