/** * The HelloWorldApp class implements an application that * simply prints "Hello World!" to standard output. */ class Hello { public static void main(String[] args) { System.out.printf("Hello World!\n"); // Display the string. System.out.printf("Goodbye cruel world"+ " " + 26.0 + "\n"); System.out.printf("Final goodbye %g\n",27.5); } }
C:\ece595_06>javac Hello.java C:\ece595_06>java Hello Hello World! Goodbye cruel world 26.0 Final goodbye 27.5000
Maintained by John Loomis, last updated 29 August 2013