Tuesday, February 5, 2013

Week-1 : 1.4: Java Code Structure

In the previous section, you tidied up your code a bit. Here's what your coding window should look like now:

First Java Project Code

You can see we have the package name first. Notice how the line ends with a semicolon. If you miss the semicolon out, the program won't compile:

package firstproject;

The class name comes next:

public class FirstProject {


No comments:

Post a Comment