摘要:
项目->属性->Java编译器->类文件生成->将行号属性添加至生成的类文件(由调试器使用)->打勾Project--->Properties---->java Compiler---->classfile Generation 选中其中的Add line number...的复选框,点击Apply后,点击OK就可以了 假如你之前的是勾选上了,那么请你把勾去掉 apply一下,然后在打开把勾又勾上一遍。在apply,最后点击ok 阅读全文
摘要:
Window->Preferences->Java->Editor->Hovers 将[Variable Values]选择即可,如果第一个[Combined Hover]已经勾选,则将这个勾去掉,勾选[Variable Values]。如果还不行,就只能用ctrl+shift+i快捷键了。 阅读全文
摘要:
1.Java byte数组转intpublic static int toInt(byte[] bRefArr) { int iOutcome = 0; byte bLoop; for ( int i =0; i<4 ; i++) { bLoop = bRefArr[i]; iOutcome+= (bLoop & 0xFF) << (8 * i); } return iOutcome; } 阅读全文