~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Java~Tips~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
getting startedGo 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 - CommentsHave 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:
public void example() { /*this is an example*/
}
this
// lets you add a comment to 1 line
1 LINE ONLY you cannot do this:
EXAMPLE
//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
public void example() { //this is an example
}
Chapter 2 - definitions- || = Or
- && = and
- ! = not
- boolean = Indicates that a value is an 8-bit whole number .
- void = Indicates that a method does not return a value. .
credits Myself 95%,some tiny help by my friend 5%.