Java Programs are written in plain text and this manner, you can compose your code on a word processor like Notepad. Save the document with a java augmentation. Then, open a terminal window and by squeezing the ‘Windows’ key and ‘R’ key. Type Cmd and click OK to open the normal window. A terminal window opens on the screen and you can type your orders here and run codes.