SMF For Free Support Forum
Signup For Free Forum
July 04, 2008, 10:21:43 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: Java Tips  (Read 379 times)
0 Members and 1 Guest are viewing this topic.
Ahrims_mage
SMF For Free Member
*
Offline Offline

Posts: 25



View Profile WWW
« on: July 19, 2007, 01:31:14 pm »

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Java~Tips~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

getting started
Go download the latest version of JDK,jcreator, and javadocs and you're ready to start java!! (most of these can be found on the official java website located here )
Chapter 1 - Comments
Have you ever wanted to add coments to your code? well then do this.if you wanted to add a comment use this infront of the comment
 
and this after the comment
 */ 
so it would look like this:
EXAMPLE:
Code:
public void example() {             /*this is an example*/
}

this
//
lets you add a comment to 1 line 1 LINE ONLY you cannot do this:
EXAMPLE
Code:
//public void example() {
}
if you did that it would only take out this part
public void example() {
you can also use it to add comments to your code like this:
EXAMPLE
Code:
public void example() { //this is an example
}

Chapter 2 - definitions
  • || = Or
  • && = and
  • ! = not
  • boolean = Indicates that a value is an 8-bit whole number  Cheesy .
  • void = Indicates that a method does not return a value.  Smiley .
credits Myself 95%,some tiny help by my friend 5%.
« Last Edit: January 01, 2008, 01:20:19 am by Ahrims_mage » Logged


Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.386 seconds with 18 queries.