I am new to java or well mainly everything. I am making a 'General Knowledge' game for a school project, I have a timer down and the questions. But I would like to know if there is a code I will be able to use to make points, for example: For every question they get right, it adds one point, then when the timer runs out or the game ends it is able to add the points together and give a total. For the questions, I am using the If else statement to determine whether the answer is correct or not.
Any help is very much appreciated.