Java Programing

From Wikiversity
Jump to navigation Jump to search

This is going to be an article on Java Programing. Java is a very diverse programing language. There is a lot to learn.

First Things First[edit | edit source]

First you have to get an IDE. The most popular one is Eclipse(available here). You could also get NetBeans(available here), but since Eclipse is more popular, we shall be using Eclipse. To be sure on the download page for Eclipse download the Eclipse IDE for Java Developers version. Also download the JDK from here.

Basic Programs

Hello, World!

class Watermelon{
    public static void main(String[] args){
          System.out.println("Hello, World!");
     }
}

The output would be:

Hello, World!

Explaing the program

This section explains the program line by line.