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 Build a JavaFX Application Build a Pomodoro App Enums

Trevor Puckett
seal-mask
.a{fill-rule:evenodd;}techdegree
Trevor Puckett
Full Stack JavaScript Techdegree Student 6,478 Points

JavaFX app - Enums compiler error

In the first task it asks you to add JVC SONY COBY and APPLE. I added as such

public enum Brad { JVC, SONY, COBY, APPLE; }

when compiling I receive this message

JavaTester.java:74: error: illegal start of expression package com.example.model; ^ JavaTester.java:74: error: not a statement package com.example.model; ^ JavaTester.java:76: error: illegal start of expression public enum Brand { ^ JavaTester.java:76: error: enum types must not be local public enum Brand { ^ 4 errors

I tried removing what I put into the code and compiling again to see if the same messages appear, and they do. Not sure what I'm looking at and some direction would be super appreciated!

Thank you =]

1 Answer

romeo draven
romeo draven
3,723 Points

Hi Trevor,

There seems to be a bug or error on TeamTreehouse's side. The support team are aware of the issue and we'll just have to skip the challenges until the problem is fixed.

Romeo