Changes

Jump to: navigation, search

Team2/Creating a Java Class

642 bytes added, 22:18, 2 February 2011
Created page with '=Guide Line= *To create a java class, right click on the package we created earlier (firstAPP) then highlight "New" and scroll down to "Class" *Under the name text box, enter "L…'
=Guide Line=
*To create a java class, right click on the package we created earlier (firstAPP) then highlight "New" and scroll down to "Class"

*Under the name text box, enter "Lab1" and click on the button "Finish"

*Copy and paste the following code
<pre>
package firstAPP;

public class Lab1 {
public int c = 4;
public void printHello() {
System.out.println("Hello");
}
public int returnC()
{
return c;
}
}
</pre>

*We will be using this sample code as we continue with this tutorial

*[http://zenit.senecac.on.ca/wiki/index.php/Team2/Renaming_Java_Elements Click Here] to progress with the tutorial
1
edit

Navigation menu