### Question:
GribNumbers { public static int convertSignedByte(byte v) { int sign = ((v & 0x80) != 0) ? -1 : 1; int value = v & 0x7f; return sign * value; }  static boolean testGribBitIsSet(int value, int gribBitNumber); static boolean testBitIsSet(int value, int bit); static boolean isUndefined(double d); static int int2(RandomAccessFile raf); static int uint(RandomAccessFile raf); static int int2(int a, int b); static int int3(RandomAccessFile raf); static int int3(int a, int b, int c); static int int4(RandomAccessFile raf); static int int4(int a, int b, int c, int d); static int uint2(RandomAccessFile raf); static int uint2(int a, int b); static int uint3(RandomAccessFile raf); static int uint3(int a, int b, int c); static float float4(RandomAccessFile raf); static float float4(int a, int b, int c, int d); static long int8(RandomAccessFile raf); static int convertSignedByte(byte v); static int convertSignedByte2(byte v); static int countBits(byte[] bitmap); static final int UNDEFINED; static final double UNDEFINEDD; static final int MISSING; }### Answer:
@Test public void testConvertSignedByte() { System.out.printf("byte == convertSignedByte == convertSignedByte2 == hex%n"); for (int i = 125; i < 256; i++) { byte b = (byte) i; System.out.printf("%d == %d == %d == %s%n", b, convertSignedByte(b), convertSignedByte2(b), Long.toHexString((long) i)); assertEquals(convertSignedByte(b), convertSignedByte2(b)); } }