I cant add two byte variable

I want to add two byte variable and store result in a byte variable but there is an error. Pls clarify me.
[113 byte] By [iamegara] at [2007-11-27 8:29:52]
# 1
Post your code.
cotton.ma at 2007-7-12 20:20:16 > top of Java-index,Java Essentials,Java Programming...
# 2
Class A{public static void main(String args[]){byte a = 2;byte b = 3;byte c = a+b;System.out.println("The result is = "+c);}}This is code i am trying.........but cant get the result.
iamegara at 2007-7-12 20:20:16 > top of Java-index,Java Essentials,Java Programming...
# 3
> This is code i am trying.........but cant get the> result.That's because it won't compile.
cotton.ma at 2007-7-12 20:20:16 > top of Java-index,Java Essentials,Java Programming...
# 4
Please COPY and PASTE your code and use the code tags around it. (highlight the text and click the code button with your mouse).
cotton.ma at 2007-7-12 20:20:16 > top of Java-index,Java Essentials,Java Programming...
# 5
And the error is? Maybe it is something about loss of precision? Then try casting the result. Also, beware an overflow problem.
floundera at 2007-7-12 20:20:16 > top of Java-index,Java Essentials,Java Programming...
# 6

> 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.

cotton.ma at 2007-7-12 20:20:16 > top of Java-index,Java Essentials,Java Programming...
# 7
I guess we will have to wait another half hour for a response.
floundera at 2007-7-12 20:20:16 > top of Java-index,Java Essentials,Java Programming...
# 8
> I guess we will have to wait another half hour for a> response.The suspense is palpable
cotton.ma at 2007-7-12 20:20:16 > top of Java-index,Java Essentials,Java Programming...