Java Hello World
1. Open Eclipse (or anoter IDE you choose)
2. Create new Java Project
3. Create new class under this new project
4. Inside curly braces of main method, type:
public static void main(String[] args) throws IOException { System.out.println("Hello World"); }
Hint: To avoid writing System.out.println(""), simply write sout and hit ctrl+space
System.out.print is used for printing text. To run our code, simply click the green play button or follow Run > Run as > Java Application menu navigation.
After running the code, console window should look like this: