I seem to be having a problem with a syntax error within Eclipse while doing one of the tutorials from the Android for Dummies book. It’s probably something simple, but I keep looking at the code and it seems right to me.. Here’s a screenshot. Ah, I can’t post images as I’m a new user. Here are the jpg links instead.
https://i.stack.imgur.com/1DWzj.jpg
I can’t figure out why Eclipse is giving me those three lines as an error. When I hover over it, it says that I’m missing a } or maybe I have too many, but I think I’ve accounted for all of them! When I remove those four lines starting with the second @Override, everything parse out correctly. Here it is without those lines.
It’s a clever typo, but if you look very closely.
has it’s first parameter as a
ListItem, but it has a variable name as the numeral1, not the letterl. Since a variable name isn’t allowed to start with a digit, the parameter list is not valid, so the method declaration is not valid, and hence the block under it is not properly opened.It’s obvious you meant the letter
las it is used within the block.