Java Java Data Structures Getting There Packages

Wenqian Zheng
Wenqian Zheng
2,286 Points

Package 1 of 4

In the task 'Let's create some code for the Example company. They own the domain example.com. Place the BlogPost.java file in the proper package by using the package keyword.'

I typed in package com.example;

and I kept get the wrong message:'JavaTester.java:65: error: illegal start of expression package com.example'

Could someone please tell me what to do? Thanks a lot!

com/example/BlogPost.java
package com.example;
Display.java
public class Display {
  public static void main(String[] args) {
    // Your code here...

  }
}

1 Answer

Aleksander Henriksen
Aleksander Henriksen
3,059 Points

Hello.

You have done everything right, it's just the tracks in TreeHouse that have some Errors. Just keep moving on, at your track, and skip the assignments till they have fixed the problem.

Wenqian Zheng
Wenqian Zheng
2,286 Points

Thanks a lot. I'm kinda confused but I did move on. :)