expected primary-expression before ')' token

Been looking through this for one and a half hour and cant seem to find the error.
been googling and all kinds of stuff i rewrote the whole code and still got the error can someone explain why it keeps doing so.. :confused:

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2,);
const int switchPin = 6;
int switchState = 0;
int prevSwitchState = 0;
int reply;

void setup() {
lcd.begin(16, 2);
pinMode(switchPin, INPUT);
lcd.print("Ask the");
lcd.setCursor(0, 1);
lcd.print("Crystal Ball!");
// put your setup code here, to run once:

}

void loop() {
switchState = digitalRead(switchPin);
if (switchState != prevSwitchState) {
if (switchState == LOW) {
reply = random(8);
lcd.clear();
lcd.setCursor (0, 0);
lcd.print("The ball says:");
lcd.setCursor(0, 1);
switch (reply) {
case 0:
lcd.print("Yes");
break;
case 1:
lcd.print("Most likely");
break;
case 2:
lcd.print("Certainly");
break;
case 3:
lcd.print("Outlook good");
break;
case 4:
lcd.print("Unsure");
break;
case 5:
lcd.print("Ask Again");
break;
case 6:
lcd.print("Doubtful");
break;
case 7:
lcd.print("No");
break;

}
}
}
prevSwitchState = switchState;
}

LiquidCrystal lcd(12, 11, 5, 4, 3, 2,);

Is it the extra comma there?

THANK YOU <3 i dont know if i'm blind or somethin but i'm having a hard time finding these kind of problems. any tip that solves them faster?

gameboysnubben:
THANK YOU <3 i dont know if i'm blind or somethin but i'm having a hard time finding these kind of problems. any tip that solves them faster?

Check out the line number that the compiler gives you with the error message. It's not always where the actual mistake is, sometimes the mistake causes an error on the next line or something, but it will always get you close enough that you can start tracing out.

For instance, in this case the error mentioned that line and said it expected something before a ). So I looked on that line for a ) and sure enough right before it was the problem.