您的位置:首页 > 其它

CSDN博客的第一篇

2014-12-15 16:12 218 查看
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">专门下了个opera浏览器来记录东西,看看CSDN的博客能不能有自动的代码识别:</span><pre name="code" class="java">package com.dby.calculate;

import com.dby.p.p;

public class Count {
public static void main(String[] args){
p.t(1<<30);
p.t(Integer.toBinaryString(1));
p.t(Integer.toBinaryString(1<<31));
p.t(1<<31);
p.pStrlen("10100000111110110101100000111000011000101100110000011010001");
p.t(Math.pow(2, 30));

p.t(Integer.toBinaryString(17));
p.t(Integer.toBinaryString(-17));
p.t(17>>2);
p.t(-17>>2);

p.t(Integer.toBinaryString(-156));
//!p.t(Integer.valueOf("10000000000000000000000000000000",2));//java.lang.NumberFormatException

p.t(-1<<30);

p.t(Integer.MAX_VALUE);

p.t(Long.toBinaryString(362498820763181265L));

// Note: offset or count might be near -1>>>1.
p.t("Note: offset or count might be near -1. ",Integer.toBinaryString(-1));
p.pStrlen("11111111111111111111111111111111");
p.t("Note: offset or count might be near -1>>>1. ",-1>>>1);
p.pStrlen("1111111111111111111111111111111");

p.t("右移32位:", 3>>32);
}
}


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: