You should have already installed Java Development Kit (JDK). Otherwise, Read "How to Install JDK and Get Started with Java Programming". Besides using a programming text editor (such as TextPad or NotePad++ (for Windows); jEdit or gedit (for Macs); gedit (for Ubuntu)), you can also use an integrated development Environment (IDE), such as Eclipse or NetBeans, which could tremendously improve your productivity.