This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Remove the imports. Those are only necessary to use "new A()" inside code without having to specify the package. But in your case both classes have the same name, so you will need to omit at least one of the imports and use the full class name (with package) in code - but you're already doing that.