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 trialVictor Sundqvist
82 PointsError
I used two computers during this course, think some of the code got deleted when i used my other pc. Got so many errors, what should i do?
1 Answer
Patrik Horváth
11,110 Pointsyout problem is STYLING, you have totaly mess in your code, if i know Class name HAVTE TO stratt with Big Letter also Constructor HAVE TO have same name as class if you wanted make constructor
just read your errors and you will see ":" "{" "}" on line ... so just go to this line ( almost always problem is in line before )
also missing return if you dont have VOID method / function and you have "string" for example so you have to RETURN string
Victor Sundqvist
82 PointsSeems like my code got a little bit messy between my pc's. Thank you for your comment Patrik, i solved it now.
Victor Sundqvist
82 PointsVictor Sundqvist
82 Pointshttps://gyazo.com/124205323b62e3a01c8446529d043eb8
https://gyazo.com/73524c539705be8bd5a5a69369241745