Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Data Structures - Retired 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. :)