摘要:
/*将二进制转换成十六进制*/class BinaryToHex { public static void main(String[] args) { int num = 120; char[] result = new char[1024]; int count = 0; while((... 阅读全文
posted @ 2015-11-13 16:51 勇敢的鑫 阅读(326) 评论(0) 推荐(0)
|
摘要:
/*将二进制转换成十六进制*/class BinaryToHex { public static void main(String[] args) { int num = 120; char[] result = new char[1024]; int count = 0; while((... 阅读全文
posted @ 2015-11-13 16:51 勇敢的鑫 阅读(326) 评论(0) 推荐(0)
摘要:
利用移位操作代替乘除操作可以提高代码的效率:/*利用移位运算代替乘除,可以提高代码效率*/class YiWeiTest { public static void main(String[] args) { int a = 2, b, c; b = 2 > 2; // 8/4 sop("... 阅读全文
posted @ 2015-11-13 15:11 勇敢的鑫 阅读(785) 评论(0) 推荐(0)
摘要:
包名:多个单词组成是所有单词字母小写。类名、接口名:所有单词首字母大写。变量名、函数名:多单词组成时第一个单词首字母小写,从第二个单词开始首字母大写。常量名:所有字母大写,单词之间用 “_” 连接。 阅读全文
posted @ 2015-11-13 11:36 勇敢的鑫 阅读(188) 评论(0) 推荐(0) |
||