import java.util.Date; class hello{ public static void main (String args[]) { int x=123; int y=123; final double pi = 3.14159265; String str="This is a string"; Date d1 = new Date(); System.out.println("Hello World!"); System.out.println("The result is "+ (x+y)); System.out.println("The constant Pi " + pi); System.out.println("The date is " + d1); System.out.println("The string is " + str); System.out.println("The length of the string is " + str.length()); System.out.println("Upper case " + str.toUpperCase()); System.out.println("The Character at position 5 of the string is " + str.charAt(5)); } }