News:

WorldScape is run on the most advance RuneScape private server software. Ever.

Main Menu

Java tutorials: Series Tutorial Two: Using Objects. **SWITCH STATEMENTS**

Started by Tonypker, February 12, 2009, 11:52:21 PM

Previous topic - Next topic

Tonypker

This is to teach you how to use objects in the Java programming language.

When I say objects, I do NOT mean objects in a server, that's a case, or in other words a switch statement.

When you make an object, you probably want to use it for something :P You might want to use one of it's field values, change one of its fields, or call one of its methods to perform an action, WHATEVER It may be, this should help.
Object fields are accessed by their name, you may use a name that's clearly defined.
You may use a simple name for a field within its own class
let's take an example, kay?
System.out.println("The admins of the site are " + Ry60003333 + " and " + Jeremy + " ");

Ryan, and Jeremy are simple names in that code.


That's only one example of Objects, I can easily use more but I gotta get on to learning and writing more tutorials =D
Hope this helped some, thanks for reading!! -Tonypker13