class hello
{
void add(Integer a,Integer b){
Integer res=a+b;
System.out.println(res);
}
public static void main(String[] args)
{
byte a;
a=27;
System.out.println("BYTE: "+a);
short b;
b=1201;
System.out.println("SHORT: "+b);
int x;
x=13256;
System.out.println("INT: "+x);
long z;
z=236464;
System.out.println("LONG: "+z);
float f;
f=(float)23.25;
System.out.println("FLOAT: "+f);
double d;
d=54.12546;
System.out.println("Double: " +d);
char c;
c='J';
System.out.println("CHAR: "+c);
boolean k;
k=false;
System.out.println("BOOLEAN: "+k);
System.out.println(new Integer(10));
Integer j=new Integer(10);
j=2;
System.out.println(j);
Integer j2=100;///Integer j2=new Integer(100);
System.out.println(j2);
hello h=new hello();
h.add(j,j2);
}
}
Keep it up, buddy....
ReplyDeleteMiss u!
also
Delete