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 trialYahya Saadi
4,277 PointsEnums
package com.example.model;
public enum Brand {
// Your code here
JVC("Jvc"),
SONY("Sony"),
COBY("Coby"),
APPLE("Apple");
private String mName;
Brand (String displayName) {
mName = displayName;
}
public String getDisplayName() {
return mName;
}
}
2 Answers
Ken Alger
Treehouse TeacherYahya;
The display name you have in your code is Jvc
, the Challenge would like to see it as JVC
. With that change the above code passes with flying colors, or at least with a nifty splash screen.
Happy coding,
Ken
Yahya Saadi
4,277 PointsThank you Ken, never thought of that and it worked.
Craig Dennis
Treehouse TeacherLooks good what is your error message?
Yahya Saadi
4,277 PointsThe error says: BUMMER! I expected to find the display name of 'JVC', but I didn't. Please correct it.
Ken Alger
Treehouse TeacherKen Alger
Treehouse TeacherEdited for markdown