Arrays of Primitive Data Types r Array Declaration <data type>[] <variable> //variation 1 <data type> <variable>[ j //variation 2 r Array creation <variable> new <data type> <size> r Example Variation 1 Variation 2 double[] rainfall double rainfall[] rainfall rainfall new double[12]i new double[12] An array is like an ob ject C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 9-4© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 9 - 4 Arrays of Primitive Data Types Array Declaration <data type> [ ] <variable> //variation 1 <data type> <variable>[ ] //variation 2 Array Creation <variable> = new <data type> [ <size> ] Example double[ ] rainfall; rainfall = new double[12]; Variation 1 double rainfall [ ]; rainfall = new double[12]; Variation 2 An array is like an object!