The first step is writing a simple Java program. Apple includes a fully-functional Java runtime and development environment out-of-the-box with OSX, so all you have to do is write a Java program and use the built-in tools to compile and run it.
Compiling and running a Java application on Mac OSX, or any major operating system, is very easy.