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 trialJames Thomas
6,452 PointsGoKart task 1 no longer passing charge()
Once again this site grates on me with it's fundemental lack of support or indication of error.
It's like a website that teaches Java but only for Java experts.
Here's my code:
class GoKart { public static final int MAX_BARS = 8; private String color; private int barCount;
public GoKart(String color) { this.color = color; }
public String getColor() { return color; } public void charge() { barCount = MAX_BARS; }
when I click submit after adding the charge() method it tells me task 1 is no longer passing. So I go back to task 1 and it is passing, so i go to task two, add the charge() method and it tells me...
well I'm sure you get the picture.
Anyone able to tell me if this is my error or a bug?
Either way anyone have a solution?
Thanks, James.
1 Answer
james south
Front End Web Development Techdegree Graduate 33,271 Pointsit often says a previous task is no longer passing when you introduce an error in the current task. however i pasted your code in and it passed. edit to add that in my experience not-very-useful error messages is common in programming and to me is not unique to TH.
James Thomas
6,452 PointsJames Thomas
6,452 PointsThank you, it seems I'll have to just skip this but it's rather frustrating especially when paying for a premium service.