how to write a basic line in java code example Example: java print syntax System.out.println("Hello World!");