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 trialtal alfi
Courses Plus Student 403 Pointsproblem performing task
when I try to perform the task of storing my name into string I got the message : illegal start of expression public class Name{
I checked few times and its exactly as it shown at the video ?what did I missed?
thank you
// I have setup a java.io.Console object for you named console
public class Name{
public static void main(String [] args){
String firstName = "tal";
}
}
1 Answer
Dean Silvestro
Courses Plus Student 20,733 PointsYou don't need to define the class or anything unless specified in the challenges. For this particular challenge that code is already there hiding. You'll pass the challenge if you take it out and keep:
String firstName = "tal";
Happy coding! :)
tal alfi
Courses Plus Student 403 Pointstal alfi
Courses Plus Student 403 Pointsthank you Thomas I appreciate it!