Difference between revisions of "Team1/Renaming Java elements"

From CDOT Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
 +
=== 1. Renaming Java elements ===
 +
 +
1.1. Go to the "src" folder in your package and right click on it, then select: ''New -> Class''<br/>
 +
[[Image:newclass1.jpg |600px]]
 +
 +
<br/>1.2. In the ''New Java Class'' window, write down your class name, e.g."VehicleRegistration" and check the ''public static void main(String[] args)''. Press Finish to close the window.<br />
 +
[[Image:newclass2.jpg |500px ]]
 +
 +
<br/>1.3. The following code will be the content of the ''VehicleRegistration'' class in ''cs.ecl.basics.lab'' package.<br />
 +
[[Image:newclass3.jpg |600px ]]
 +
 
'''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

Revision as of 11:02, 30 January 2011

1. Renaming Java elements

1.1. Go to the "src" folder in your package and right click on it, then select: New -> Class
Newclass1.jpg


1.2. In the New Java Class window, write down your class name, e.g."VehicleRegistration" and check the public static void main(String[] args). Press Finish to close the window.
Newclass2.jpg


1.3. The following code will be the content of the VehicleRegistration class in cs.ecl.basics.lab package.
Newclass3.jpg

6. Renaming Java elements
Go to the "src" folder in your package and right click on it, then select: New -> Class
EclLab1 4.jpg


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