1public class Hello
2{
3 public static void main(String[] args)
4 {
5 /*Tip System.out.println(); shortcut Type 'sysout'and press Tab */
6 System.out.println("Hello world!");
7 }
8}
1class Simple{
2 public static void main(String args[]){
3 System.out.println("Hello Java");
4 }
5}
1public class hello{
2 public static void main(String[] args){
3 System.out.println("Hello world!");
4 }
5}
1// Your First Program
2
3class HelloWorld {
4 public static void main(String[] args) {
5 System.out.println("Hello, World!");
6 }
7}
1// This is just a line of code, but publilc class.... is needed!
2 System.out.println("This will be printed");