public class Yunsuan{
public static void main(String[] args){
byte b1 = 10;
byte b2 = 1;
int result = b1+b2;
float f1 = 10f;
float f2 = 10f;
int i1 = 2;
float r = f1 + i1;
//System.out.println("i1+f1="+r);
//从大到小:byte1,char1 < short2 < int4(float4) < long8(double8)
//int前面的相加还是int(byte,short,char),后面的相加,相同则同,不同则选择大的,float+long =float
//System.out.println("b1+b2="+result);
//System.out.println("f1+f2="+(f1+f2));
long l = 1;
double d = 1.0;
double r1 = l+d;
//System.out.println("l+d="+r1);
char c1 = '1';
char c2 = '1';
int r2 = c1 + c2;
System.out.println("c1+c2="+r2);
double r3 = f1 + d;
System.out.println("f1+d="+r3);
}
}