make a string java code example Example 1: how to make a string java String newString = "Hello World"; Example 2: java write string System.out.println("Hello Console");