Difference between revisions of "Team1/Renaming Java elements"
Line 1: | Line 1: | ||
'''6. Renaming Java elements ''' | '''6. Renaming Java elements ''' | ||
<br/>Go to the "src" folder in your package and right click on it, then select: New -> Class | <br/>Go to the "src" folder in your package and right click on it, then select: New -> Class | ||
− | + | [[Image:eclLab1_4.jpg|500px ]] | |
<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/>In the "New Java Class" window, write down your class name, e.g."Lab" and check the "public static void main(String[] args)" | ||
− | + | [[Image:eclLab1_5.jpg|400px ]] | |
<br/>The following code will be the content of the Lab1_1 class. | <br/>The following code will be the content of the Lab1_1 class. | ||
[[Image:eclLab1_7.jpg|500px ]] | [[Image:eclLab1_7.jpg|500px ]] | ||
<br/>The following code will be the content of the Lab1_1 class. | <br/>The following code will be the content of the Lab1_1 class. | ||
− | + | [[Image:eclLab1_8.jpg|500px ]] |
Revision as of 12:28, 29 January 2011
6. Renaming Java elements
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)"
400px
The following code will be the content of the Lab1_1 class.
500px
The following code will be the content of the Lab1_1 class.
500px