标签:
public class TestConvert { public static void main(String[] args) { int num=9; double dnum=num; int inum=(int)dnum; double num1=9.8; int num2=(int)num1; System.out.println(num2); } }
5.类型转换
原文地址:http://www.cnblogs.com/xiaotaoxu/p/5536250.html