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 trialJoshua Jenkins
30 PointsWhat am I doing wrong with my first program?
So, I am new to Java, and I am trying to get my first program to run, I have typed it out exactley as the book for my college class states but I keep getting a "Not a Statement" error, because it is missing a ;, but as you can see it's there.
public class FirstProgram { public static void main(String[] args){ System,out.println("This is my first Java program"); }
}
1 Answer
Steven Parker
232,149 PointsIt looks like there's a comma between "System" and "out", but it should be a period.
For future questions, be sure to use Markdown formatting to preserve the code's appearance, or provide a link to a snapshot of your workspace. You may also want take a look at this video about Posting a Question to the forum.