Welcome to the Treehouse Community
Looking to learn something new?
I don't understand why this line of code is failing?
I'm pretty sure this line of code for : Set the first double in the array to 2.2 is correct. I'm getting the error:" Bummer! Did you index into the first element?" but the first element IS set??
I googled the answer on another identical question and this is the correct code as far as I can tell? https://teamtreehouse.com/community/set-the-first-double-in-the-array-to-22
double lapTimes = new double; lapTime = 2.2;
You just have a small typo.
On the second line you have typed lapTime instead of lapTimes (you forgot the last s) if you add that like this:
double lapTimes = new double; lapTimes = 2.2;
Then your code will be accepted.