Java - Tutorial #1

Zennywop

Active Member
Reputation
0
Hey guys, Zennywop here.

This is my very first guide on anything, so bare with me :)

Requirements​

JDK - which can be downloaded
here.

161e16s.png


Eclipse - which can be downloaded here.
30hlwle.png


A brain - which can be acquired when forming in your mothers womb.

Ok, once you have that sorted out lets move on.

1. Open up eclipse.

You should see something saying 'Default workspace'

Choose the default one.

2. You should see something like this ,

4u79dk.jpg


3. Make a new Java Project by,

File > New > Java Project

2hwhd1u.png


You can name that what ever you want but i'm gunna call mine 'anthony' which is my first name.
96ax61.jpg


4. Double click the following,

'Your Project Name' > src > (default package)
Right click (default package) and click new > Class

30lmkjl.png


5. You should see a screen like this,
33ylwso.png


Ok once you have that up you should see a screen like this,

n4azrp.png


6. Copy and paste this into Eclipse
Code:
public class Hello{ 
   public static void main(String args[]){
      System.out.println("Hello World!");
   }
}

11rww37.png


public - this means that anything can access it.
static - this is used to show what method is being used along all the classes.
void - shows that this method will not have any return.
main - is the method which string has an argument.

Credits - I edited but this is where I found it Here

7. Hit the green 'Go' button

15yzqlw.png



I hope you enjoyed the tutorial :)
 
What do you make with coding Java other than RuneScape oriented things?
 
I haven't tried many things other than RuneScape related things but you can make simple things like a calculator and over small things like that.
I haven't tried to do anything huge with Java yet but I plan to stick with it for a couple more years until I can completely code flawless.

Edit: No one has commented meaning I will probably not make another tutorial anytime soon.
 
Touche said:
Great job Zennywop, I like it!

Btw, congratulations on Staff.

Thanks Touche :nice:

I might make another Tutorial soon. This was the easiest one I learnt when I started.

The next one may be a LOT bigger.
 
Echoes said:
What do you make with coding Java other than RuneScape oriented things?

Anything that supports Java.

Some of them are hacks, games, exploits, etc. I've created a cheat client for minecraft, it was amazing.

Nice tutorial by the way. :thumbsup:
 
iolaka said:
Anything that supports Java.

Some of them are hacks, games, exploits, etc. I've created a cheat client for minecraft, it was amazing.

Nice tutorial by the way. :thumbsup:

So you like Java also?
Maybe we should make a script for RSBot sometime :smiley:
 
Zennywop said:
So you like Java also?
Maybe we should make a script for RSBot sometime :smiley:

Yep, I do.

Coded RSPS's for 2 years now :thumbsup:
 
iolaka said:
Yep, I do.

Coded RSPS's for 2 years now :thumbsup:

!!
Wanna make a Script together and maybe release privately for Rune Gear and sell on other sites :laugh: ?
 
Zennywop said:
!!
Wanna make a Script together and maybe release privately for Rune Gear and sell on other sites :laugh: ?

Maybe, we should give it a try. When I get my laptop back though.

Then we could release it to the RG Elite or something, if this does work out. :p

Looking forward to this, I like your idea.
 
iolaka said:
Maybe, we should give it a try. When I get my laptop back though.

Then we could release it to the RG Elite or something, if this does work out. :p

Looking forward to this, I like your idea.

Sounds good. I might have too learn the new API though. It shouldn't be hard.
 
This is great! It refreshed my memory after a few months of not touching Java!
I had to return the book back to the library, I'd use ebooks but I'm not too keen on reading on the computer.
I like having the book in my hands, having the feeling of grasping Java itself you know?
Thanks again for this!
 
Quote said:
This is great! It refreshed my memory after a few months of not touching Java!
I had to return the book back to the library, I'd use ebooks but I'm not too keen on reading on the computer.
I like having the book in my hands, having the feeling of grasping Java itself you know?
Thanks again for this!

No problem. I learnt a lot more over the last year. If anyone would like me to continue and maybe make a video on scripting for Powerbot, I might.
 
Back
Top