Difference between revisions of "Creating a Java class"
(Created page with ''''5. Creating a java class ''' :Go to the "src" folder in your package and right click on it, then select: New -> Class :In the "New Java Class" window, write down your clas…') |
|||
Line 1: | Line 1: | ||
'''5. Creating a java class ''' | '''5. Creating a java class ''' | ||
− | + | <br/>Go to the "src" folder in your package and right click on it, then select: New -> Class | |
− | + | <br/>In the "New Java Class" window, write down your class name, e.g."Lab" and check the "public static void main(String[] args)" | |
− | + | <br/>The following code will be the content of the Lab1_1 class. |
Revision as of 11:07, 24 January 2011
5. Creating a java class
Go to the "src" folder in your package and right click on it, then select: New -> Class
In the "New Java Class" window, write down your class name, e.g."Lab" and check the "public static void main(String[] args)"
The following code will be the content of the Lab1_1 class.