public class 空间 {
public static void main(String[] args) {
// TODO Auto-generated method stub
long total = 256L * 1024 * 1024 * 8; // 计算总位数 因为1字节(Byte)= 8位(bit),而1MB = 1024KB, 1KB = 1024字节
long Stored = total / 32; // 计算可以存储的32位整数数量
System.out.println("256MB的空间可以存储的32位二进制整数的数量是: " + Stored);
}
}
0 回复
0 转发
0 喜欢
6 阅读



