Serial.println Array[2] Problem

I think I have this set up correctly, I wanted to print out the value stored in the array at the index number [2].

Instead of printing the value in position 2 of the array, it prints out "2".

What have I missed?

int array1[5] = {0,1,2,3,4};

void setup(){
Serial.begin(9600);
}
void loop(){

Serial.println(array1[2]);
}

Arrays are indexed starting at zero.

print() will convert to ASCII, use write() to send the actual value, but if you do you won't see anything happen on the Arduino serial monitor because low numbers like that are not printable by it.


Rob