Java Java Data Structures Getting There Packages

András Baranyai
András Baranyai
4,255 Points

Java Data Structures Challenge - Package keyword

I am having difficulties moving on to the next step of this challange. I have added the package com.example; on the first line yet it won't run and I am keep getting the same comments ("Remember use the package keyword on the first line")

com/example/BlogPost.java

Display.java
package com.example;

public class Display {
  public static void main(String[] args) {
    // Your code here...

  }
}

1 Answer

Justin Horner
STAFF
Justin Horner
Treehouse Guest Teacher

Hello András,

I believe your code is correct to add the package at the first line, but the challenge is asking you to add the package in BlogPost.java. Once you've done that, your code should pass the challenge and you'll be able to move to the next step!

I hope this helps.