> And the error is?
The first error is
A.java:1: 'class' or 'interface' expected
Class A
And since I believe that that is caused by the OP hurriedly retyping code rather than pasting his real code I am not wanting to waste time guessing what the real problem is.