ExclamationHello MPGH In Java

Posts 17 of 7 · Page 1 of 1
Hello MPGH In Java
I used to program in java when I did all the runescape shit(2006-2009), self educated in java. Now i do web development


Lets start:
Assuming that you have setup your paths etc, we shall create a class.
Paste all of the following into helloWorld.java
Code:
class helloWorld {
    public static void main(String[] args) {
        System.out.println("Hello MPGH!");
    }
}
Lets break it down
Code:
class helloWorld {
this tells the compiler we are attempting to make a class called helloWorld

Code:
public static void main(String[] args) {
we are creating a main method.

Code:
System.out.println("Hello MPGH!");
This will print out "Hello MPGH" when run.

all done
oh .
good to see another Java programmer around. It seems simple, but its interesting how complex HelloWorld really is, and I don't think some one who doesn't know Hello world would understand what a class is ;p
say now with this code cuz im gona be a nub here lol what are u doing with this code how are u compiling it or running what ever u are running to get this message?? could u include that perhaps
Quote Originally Posted by axel fox View Post
say now with this code cuz im gona be a nub here lol what are u doing with this code how are u compiling it or running what ever u are running to get this message?? could u include that perhaps
You can build your compiler from scratch but I would suggest using an IDE with a built in compiler unless you know batch and perfer to do it that way.

I use JCreator, but the most commonly used IDE would be Eclipse, which I know nothing about since I don't use it. (try googling it)
Eclipse = the best ide imo.
I used to use IntelJ too but my licence ran out and its pretty expensive so moved to Eclipse , trust me java might seem hard at the start but its piss after a while
Pretty good. But yeah, a little explanation on what the classes are and people would have a better understanding. But still, good job
Posts 17 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?