private static int toByte(char c) {
byte b = (byte) "0123456789ABCDEF".indexOf(c);
return b;
}
java byte數(shù)組與16進制字符串挠乳、字符串轉(zhuǎn)換java socket通信中,UDP采用DatagramSocket進行接收receive和發(fā)送send, TCP則采用ServerSocket進行收發(fā)囚似,經(jīng)常會碰到一些byt...