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 Override an inherited method

Why Compile Time error on package statement?

When I try to submit my code challenge it always shows

JavaTester.java:69: error: illegal start of expression package com.example; ^ JavaTester.java:69: error: not a statement package com.example;

Is it your system failure? I am pretty confident that the code challenge I am going submit is correct?

This is my code for Code Challenge: Packages Task 1

package com.example;

1 Answer

Oh wow so its just not me, I got the same errors. It seems that the system is glitching out. Uh oh...

Btw, is your code:

  @Override
  public String toString(){
    return "Blogpost: " + mTitle + " by " + mAuthor;
  }

Cuz thats what I put. I am pretty sure that is correct.