Below a how-to of getting started with Java.
You need to download these three things:
1) Java Development Kit (JDK for short):
Oracle.com
(JDK 6 Update 21)
Click Download, select Platform (e.g. Windows), click the link below to download Java SE Development Kit 6u21.
2) Elipse Helios, the compiler of Java code (the syntax coloured, checks for possible errors, etc.):
Eclipse.org
On the right, there is a section of links named Download Links, you need to select your own platform-specific version of the program.
3) Java learning materials, such as Introduction to Programming Using Java, the fifth edition: Math.hws.edu
Also available online: Math.hws.edu
There are a few things to know about Java if you are an experienced programmer (C++/C/C#, etc.).
One of the most important things, the main public file class must be exactly the SAME as the file name, unlike C# and C++ where it doesn't make any difference which class holds the main function, so e.g.:
import javax.swing.JOptionPane;
public class simple {
public static void main (String[] args) {
JOptionPane.showMessageDialog(null, "Hello Somebody!");
}
}
The main public class is simple, and the Java file name is simple.java
Otherwise (without it or differently named) you may get compiling errors. One can always be on the lookout for other differences between Java and other curly-bracket programming languages, for example the concept of inheritance in Java.
Regarding Introduction to Programming Using Java, if you are an experienced programmer, you can skip most of the book and concentrate on the graphics, the chapters 6 (Introduction to GUI Programming) and 12 (titled Advanced GUI Programming).