![]()  | 
        Home | Unit 1 | Unit 2 | Unit 3 | Unit 4 | Unit 5 | Unit 6 | Unit 7 | Unit 8 | Unit 9 | Reflection | 
Unit 6
My notes on unit 6.
- Arrays
 - Using Arrays
 
Arrays
These work the same as an array in most programming languages. They are of fixed size and a single type.
Defaults
- Reference types -> 
null boolean->falsedoubleorfloat-> 0.0int-> 0
Using arrays
.lengthis the length of the array- Traverse them using a loop
 
Other notes
For-each loops (enhanced for loops) can be used to iterate through an array.
