If you have not started yet you should download a jdk. To do so you need to register an account. You also need some tutorial like "Java for beginners" in pdf. On rosettacode.org you will find some simple code not bad for beginners. Sometimes it is not complete.
You need:
public static void main (String[] arg) {
if it is not in the code
One of my favorites:
http://rosettacode.org/wiki/Mandelbrot_set#Java
If you have a 1920x1080 screen you should of course use most of it and not only the small graphic window from this code. Change and test!