You need to review brackets. Every ( needs a ). Go through your code from the top to bottom and match all the brackets. The latest compiler has better detection, so if you have two methods, and it says that there's an ) expected at the beginning of the second method, it means that the previous one was missing it.