jeudi 28 août 2014

I'm getting an identifier expected error


Vote count:

0




I am trying to write a simple quiz game and trying to lay out one question and answer session with this code sample: QuizCard(q, a){



String question = "What's the name of the lead actor in the movie 'I Robot'?";
String answer = "Will Smith";
q = question;
a = answer;
}


QuizCard is a constructor but I am getting an identifier expected error. Could someone make me understand what I am doing wrong here please.



asked 38 secs ago







I'm getting an identifier expected error

Aucun commentaire:

Enregistrer un commentaire