DEV Community

Cover image for Hello World in Java
My Nguyen
My Nguyen

Posted on

Hello World in Java

In this series, I will guide you to learn Java from basic to advanced, I will help you cover it all from beginning to end. forms the foundation for us to develop Web applications or applications using the Java language.

From the Windows search box, open the terminal and type cmd.

Image description

System.out.print("Hello World");
Hello World

In Java, newline characters will not be distinguished, but a comma will be required.

Image description

Typing forward slash and the word 'exit', or forward slash with the shortcut text ex, will end your JShell session, if you get stuck.
An example would be /exit or /ex.

Image description

Top comments (0)