Exception in thread "main" java.lang.NumberFormatException: For input string: "A
0"
at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Byte.parseByte(Byte.java:122)
at java.lang.Byte.<init>(Byte.java:296)
at person.fane.test.FloatTest.main(FloatTest.java:19)
public class FloatTest
{
public static void main(String[] args)
{
int maskInt = 0xff;
byte [] rec = new byte[4];
/*用01000000101000000000000000000000也就是5.0来测试*/
rec[3] = (new Byte("40")).byteValue();
rec[2] = (new Byte("A0")).byteValue();
rec[1] = (new Byte("00")).byteValue();
rec[0] = (new Byte("00")).byteValue();