Changes

Jump to: navigation, search

Team1/Creating a Java class

152 bytes added, 12:20, 30 January 2011
no edit summary
=== 5. Creating a Java class inside a package ===
5.1. Go to the "src" folder in your package and right click on it, then select: ''New -> Class''<br/>
[[Image:newclass1.jpg |600px]]
<br/>5.2. In the ''New Java Class''5window, write down your class name, e.g. Creating a java class "VehicleRegistration" and check the ''public static void main(String[] args)''. Press Finish to close the window.<br/>Go to the "src" folder in your package and right click on it, then select: New -> Class [[Image:eclLab1_1newclass2.jpg|500px ]]
<br/>In the "New Java Class" window, write down your class name, e5.g3."Lab" and check the "public static void main(String[] args)" [[Image:eclLab1_2.jpg|400px ]] <br/>The following code will be the content of the Lab1_1 ''VehicleRegistration'' classin ''cs.ecl.basics.lab'' package.<br /> [[Image:eclLab1_3newclass3.jpg|500px 600px ]]
1
edit

Navigation menu