> 学艺不精,不会使用Scala的求法,所以只能曲线救国,使用Java的包装类
object Main {
def main(args: Array[String]): Unit = {
println("The size of short is %d bytes.".format(java.lang.Short.SIZE / 8))
println("The size of int is %d bytes.".format(java.lang.Integer.SIZE / 8))
println("The size of long is %d bytes.".format(java.lang.Long.SIZE / 8))
println("The size of long long is %d bytes.".format(java.lang.Long.SIZE / 8))
}
} 
京公网安备 11010502036488号