?? tools.java
字號:
/*
* Created on 2005-5-24
*
*/
package name.lxm.robot.arch;
import java.util.Formatter;
/**
* Auxiliary tools for communication and calculation
*
* @author Richard Lee
*/
public class Tools {
Formatter f = new Formatter();
Object[] obj = new Object[1];
public Tools()
{
}
/**
* Convert the byte to char for display
*
* @param buf2 the data buffer
* @param c the length of the data in the buffer
* @return the string of sequence bytes
*/
public String convertByte2Char(byte[] buf2, int c) {
for (int i = 0; i < c; i++) {
obj[0] = new Byte(buf2[i]);
f.format("%1$02x ", obj);
}
return f.toString().toUpperCase();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -