which is usefull(commonly used) way to represent numbers like
int x,y;
or
Integer x,y;
what is the difference between them ?
i wrote code like
class test4
{
public static void main(String args[])
{
Integer x,y;
x=23;
y=30;
System.out.println(x+ys);
}
}
i got following errors
1.incompatible types
2. operator + cannot be applied to java.lang.Integer,java.lang.Integer.
what is wrong with my code ?
please tell me..