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 trialdamlanuronat
39 PointsJavaTester.java:73: error: illegal start of expression public class Introductions{ ^ 1 error
hi, why it gives this error?
// I have setup a java.io.Console object for you named console
public class Introductions{
public static void main(String[] args){
Console console=System.console();
String firstName="damlanur";
}
}
1 Answer
Craig Dennis
Treehouse TeacherHi damlanur onat !
Don't worry about wrapping it in the class and method. I do that for you...soon enough I'll ask you for the boilerplate.
Just this'll do:
String firstName="damlanur";