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 trialaladdin aloulou
Courses Plus Student 252 PointsIn workspace , when compiling it says :Introductions.java:10: error: reached ent file while parsing
Introductions.java:10: error: reached end of file while parsing
}
^
1 error
5 Answers
Shane Robinson
7,324 PointsCould you post your code? You are missing a closing curly brace somewhere.
aladdin aloulou
Courses Plus Student 252 Pointsthank you
Shane Robinson
7,324 PointsNo problem - missing semi-colons, brackets, and spelling errors are some of the easiest mistakes to make when programming and they can be hard to catch sometimes. :p
aladdin aloulou
Courses Plus Student 252 PointsExcuse me can you tell me for what we use //
Shane Robinson
7,324 PointsYes. Simply put // is the beginning of a line comment, anything after the // is ignored by the compiler - it is simply used to help the person writing the code to more clearly understand what is going on. There is also a multi-line comment which does the same thing but can span multiple lines, it looks like this:
/* This
* is a
* multi-line comment.
*/
aladdin aloulou
Courses Plus Student 252 Pointsthank you a lot , I'm a beginner in java . Do you think that java is the perfect programming language to build android appps ?
Shane Robinson
7,324 PointsIt's essentially the only language for building Android apps. If your desire is to build Android apps then I think the best course of action would be take the Java Basics course and maybe the Java Objects course and then begin on the Android Development track.
aladdin aloulou
Courses Plus Student 252 Pointsthanx
aladdin aloulou
Courses Plus Student 252 Pointsaladdin aloulou
Courses Plus Student 252 Points[MOD: edited code block - sh]
Shane Robinson
7,324 PointsShane Robinson
7,324 PointsYeah you are missing the last bracket at the very end.