public static void test9() { int score = 0; int total = 3; ps.println("\n** Testing decimalValue()... "); Byte b = new Byte(5); if (b.decimalValue() == 5 && b.toString().equals("00000101")) { ps.println("PASS"); score++; } else ps.println("FAIL"); b.set(-3); if (b.decimalValue() == -3 && b.toString().equals("11111101")) { ps.println("PASS"); score++; } else ps.println("FAIL"); b = new Byte(); if (b.decimalValue() == 0 && b.toString().equals("00000000")) { ps.println("PASS"); score++; } else ps.println("FAIL"); report(score, total); }