打印字节数

                                             打印字节数

 

public static void main(String[] args) {
        System.out.println("Byte" + Byte.SIZE/8);
        System.out.println("Short" + Short.SIZE/8);
        System.out.println("Integer" + Integer.SIZE/8);
        System.out.println("Long" + Long.SIZE/8);
        System.out.println("Double" + Double.SIZE/8);
        System.out.println("Float" + Float.SIZE/8);
    }

Byte1
Short2
Integer4
Long8
Double8
Float4
 

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务