类型转换 public class leixingzhuanhuan { public static void main(String[] args) { double d=10; System.out.println(d); byte b=10; short s=b; int i=b; int k=(int)88.88;//强制类型转换导致数据丢失 System.out.println(k); } }