Class 1, Part 2 |
Intro to Java 30-IT-396 |
|
The Homestretch
-
String message = "Hello world, this is Java I.";
-
Defines a variable, named message, of type String, and assigns a value
to it.
-
System.out.println(message);
-
Prints the String variable to standard output, via the println() method
of the System.out object.
-
And finally, a } to close the method, and a } to close the class.
Data Types


Created by: Brandan
Jones
December 17, 2001