Exception in thread “main“ java.util.UnknownFormatConversionException: Conversion = ‘ ‘
完整代码如下: byte a; int b; float c; double d; Scanner reader = new Scanner(System.in); a = reader.nextByte(); b = reader.nextInt(); c = reader.nextFloat(); d = reader.nextDouble(); System.out.printf(" a = % d, b = % 4 d, c = % 5.2 f