"Hi, buddy. I made a copy of your contract for you, just in case. Rishi, that cheapskate, is blissfully ignorant. You should see the figures in my contract. Ha!"

"Good job, Diego. I think I'll learn a lot from you."

"Sure thing, Amigo. There are too many stupid people in the world who want to get rich without actually doing something. But there are even more idiots who are ready to work for free."

"OK, let's get back to our lesson. Now I'm going to teach you several ways to create variables:"

Example Explanation
``````String s1 = new String();
String s2 = "";``````
Create two identical empty strings.
``int a;``
Create an `int` variable;
``int a = 5;``
Create an `int`, variable named a and set its value equal to `5`
``int a = 5, b = 6;``
Create an `int`, variable named `a` and set its value equal to `5` Create an `int`, variable named `b` and set its value equal to `6`
``int a = 5, b = a + 1;``
Create an `int` variable named `a` and set its value equal to `5` Create an `int` variable named `b` and set its value equal to `6`
``Date date = new Date();``
Create a Date object. It is initialized to the current date and time.
``boolean isTrue = true;``
Initialize a `boolean` variable to `true`
``boolean isLess = (5 > 6);``
Assign `false` to the `isLess` variable. `Boolean` variables only accept the values true and false.

"Cool, Diego! You always make everything so clear."

"LOL! Thanks, Amigo."

"By the way, I have a couple more exercises for you. How are they going so far?"

"They weren't too hard, and some were pretty funny."

8
New Java Syntax,  level 8lesson 4
Locked
Variety
In the Solution class, create six variables: - declare two of them using separate statements, and assign them some values immediately upon declaring them; - declare two variables on one line, and do not assign anything to them; - and declare two more variables on one line, and immediately upon decla
8