小数加上整数出错是为什么
public class Arith{
public static void main(String[] args){
float number1 = 45.56f;
int number2 = 152;
System.out println("和为:"+(number2+number1));
}
}
public class Arith{
public static void main(String[] args){
float number1 = 45.56f;
int number2 = 152;
System.out println("和为:"+(number2+number1));
}
}
2015-10-12
举报