Students, please be sure to log in. This site does not use cookies and does not track/store work submitted when not signed in.
Unit 6 Problems
Java Reference Sheet
Tiles
Objective(s): Practice creating an array of objects and working with a Java class. (combining your knowledge of Unit 2, 5 and 6)
Create and return an array of 10 Tile objects
. The Tile class is shown below.
public class Tile{
public Tile(){}
}
When dealing with arrays of objects. You need to individually instantiate the objects. In the declaration and instantiation of the object array, the array contains references to the objects. If the objects do not exist, then you'll have null values! A null
value in programming is an uninitialized, undefined, empty, or meaningless value.