"Hi, Amigo. I'd like to give you a couple of tasks about collections:"
8
Task
New Java Syntax,
level 8,
lesson 3
Locked
Cats are good
Create a Cat object twice. Store each instance in its own variable. The variable names must be different.
8
Task
New Java Syntax,
level 8,
lesson 3
Locked
Family relations
In the main method, create a Man object and save a reference to it in the variable man.
Also, create a Woman object and save a reference to it in the variable woman.
Hint: Use the following construct to create a Woman object and assign a reference to that object to the variable woman:
VariableType v
8
Task
New Java Syntax,
level 8,
lesson 3
Locked
Three dogs are a force
Create 3 Dog objects. Store each instance in a separate variable. Give them the names "Max", "Bella", and "Jack".
GO TO FULL VERSION