Hey folks. I'll give you a simple Java guide to see if you are interested in Java, I myself is learning Java slowly 
What you need:
- JDK 6 (Download Here: http://java.sun.com/javase/downloads/index.jsp)
- Command Prompt
- Notepad
- A Brain
- A keyboard
Shall we start?
I've decided to add a block comment at the start of the program, It will help people know what the program is.
A block comment looks like this.
That line will be ignored by the Java compiler (Javac)
Next we shall identify the class we want to make. So open up Notepad and type this in.
As you can see we are calling the class to be HelloRawr, When we compile this later it will make it HelloSythe.
Under it you may put this.
This is the same as block comment but for just one line only.
Now time for the main coding.
Under the single line comment put:
Woah! What was that?
Let me explain in small parts.
This code will tell the program to print some words in the bracket. (Use if you want to print word).
Your final code should look like this.
Time to compile this bitch.
Save the file as HelloRawr.java in C:\Java
Now open Command Prompt and type in this.
cd C:\Java
(This changes the Directory to C:\Java)
Now type this: javac HelloRawr.java
Now check the Java file and there should be HelloRawr.class
Now open it and it should display 'Hello Rawr'
Congrats, You have learnt the first step to Java.
What you need:
- JDK 6 (Download Here: http://java.sun.com/javase/downloads/index.jsp)
- Command Prompt
- Notepad
- A Brain
- A keyboard
Shall we start?
I've decided to add a block comment at the start of the program, It will help people know what the program is.
A block comment looks like this.
Code:
/* Hello Rawr, by Vinny
*
/*
That line will be ignored by the Java compiler (Javac)
Next we shall identify the class we want to make. So open up Notepad and type this in.
Code:
class HelloRawr {
As you can see we are calling the class to be HelloRawr, When we compile this later it will make it HelloSythe.
Under it you may put this.
Code:
//This is a single line comment. etc...
This is the same as block comment but for just one line only.
Now time for the main coding.
Under the single line comment put:
Code:
public static void main(String args[]){
Woah! What was that?
Let me explain in small parts.
Public: This means its going to be a public class its public
Static: This allows main() to happen. Which is shown here as (String args[])
void: This will not return any values we set.
main: This is calling main (used for javac)
String: This is a readable language by humans.
args: Calling an argument forth
[]: Random
{: Clossing the function
Code:
System.out.println("Hello Sythe");
This code will tell the program to print some words in the bracket. (Use if you want to print word).
Your final code should look like this.
Code:
/* Hello Rawr
*
/*
class HelloRawr {
//Random comment lol
public static void main(String args[]) {
System.out.println("Hello Rawr");
{
{
Time to compile this bitch.
Save the file as HelloRawr.java in C:\Java
Now open Command Prompt and type in this.
cd C:\Java
(This changes the Directory to C:\Java)
Now type this: javac HelloRawr.java
Now check the Java file and there should be HelloRawr.class
Now open it and it should display 'Hello Rawr'
Congrats, You have learnt the first step to Java.











