basic LED functions

Thanks

Well as i'm new to arduinos and the program environment they use I am just playing around to get used to how they work.

I am trying to program each LED to blink independently and at different rates.

I am using the pins 2, 3 and 4 as LED outputs going into a breadboard, the current then goes through resistors which pass to the LED's. I have wired the ground from each LED to the V1 row which the ground wire from the arduino is also connected.

Heres the code I am working on:

int ledPins[] = {
2, 3, 4 }; // An array of pin numbers to which LED's are attached

// The setup() method runs once, when the sketch starts

void setup() {
// initialize the digital pins as an output:
pinMode(ledPins [2, 3, 4], OUTPUT);
}

// the loop() method runs over and over again,
// as long as the Arduino has power

void loop()
{
digitalWrite(ledPins [2], HIGH); // set the LED on
delay(300); // wait for a second
digitalWrite(ledPins [2], LOW); // set the LED off
delay(300); // wait for a second
digitalWrite(ledPins [3], HIGH);
delay(600);
digitalWrite(ledPins [3], LOW);
delay(600);
digitalWrite(ledPins [4], HIGH);
delay(1000);
digitalWrite(ledPins [4], LOW);
delay(1000);
}

The code seems to verify with no errors and the L light on my arduino is lit but the LEDs do not blink.