SMF For Free Support Forum
Signup For Free Forum
July 30, 2010, 05:56:47 pm *
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 1634 times)
0 Members and 1 Guest are viewing this topic.
Ahrims_mage
SMF For Free Member
*
Offline Offline

Posts: 24



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
Kalphiter
SMF For Free Full Member
*
Offline Offline

Posts: 135


DE30AC #409


View Profile
« Reply #1 on: September 13, 2008, 09:34:22 am »

so so...

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%.

!!
&&

Those are called operators.

public
means that it can be accessed by other classes.
Logged


Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting
Page created in 0.27 seconds with 16 queries. (Pretty URLs adds 0.086s, 2q)