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
oneElement
Objective(s): Practice writing values to an array position.
Create an integer array of length 1. Write the value 7.
Need help with the syntax?
type[] nameOfArray = new type[size];
remember size is the number of elements and NOT the index
Arrays provide a way to store and access multiple values of the same type, but technically you can have a 0 or 1 length array.