Before we start programming java we have to set up a java ide. It's called eclipse you can download it here.
Step 1: Creating a Project
Now that you have eclipse downloaded we have to create a java project.Name it java.Now click File\new\class
and name that java.Now your ready to code.