Number抽象类

抽象类NumberBigDecimalBigIntegerByteDoubleFloatIntegerLongShort类的父类,Number的子类必须提供将表示的数值转换为bytedoublefloatintlongshort的方法。

例如,doubleValue()方法返回双精度值,floatValue()方法返回浮点值。


猜你喜欢

转载自blog.csdn.net/qq_36761831/article/details/80551860
今日推荐