Type A is already defined error
Well, the first thing to check is obviously whether or not you have another class called A
in your file or in the same package.
Eclipse sometimes gets confused. If you choose Clean
from the Project
menu, it might fix these errors.