Recap of Class 1
year = 2006;
A variable can be declared and assigned in one step.
int year = 2006;
String name = "Fred";
The following window is referred to as a terminal window or the console.

Method println
is used to send data to the console.
To send the String "Fred" to the console, we would write the command.
System.out.println("Fred");
Can also output the value of a variable
int year = 2006;
System.out.println(year); // sends 2006 to the console.
A sequence of characters enclosed in quotes " " is a String literal or simply a String
"This is a String , remember strings are objects in Java";
We can assign a String to a variable.
String name = "Assigning a string to a reference variable name";
When one of the operands to the plus operator '+' is a string, string concatenation is performed.
String first = "Fred";
String name = first + " Flintstone";
System.out.println(name); // Fred Flintstone is sent to the console.
int year = 2006;
System.out.println("The year is " + year); // The year is 2006 is sent to the console.
Commands or statements typically end with a semicolon ;