Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

onCreateOptionsMenu(Menu menu) ";" expected?

Hello! I am having some trouble in eclipse. It seems that oh this line: onCreateOptionsMenu(Menu menu) it wants to replace the parenthesis with semicolons, but when I do I just get more and more errors. Any help???

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Well that's a weird one! It should definitely have parenthesis! Maybe a syntax error somewhere else in the code is causing you trouble. Sometimes errors earlier in the file have weird consequences later. Can you paste in all your code for us to look at?

To format code, put three backticks and the word "java" in front of it and then three backticks after it, like this:

Example:

```java

String test = "Hi!";

```

gives:

String test = "Hi!";

Hey thanks! I actually put 2 semicolons after one of the fade in animations. :)