println中,不支持各个输出的参数间用“,”来连接,会报错 The method println(double) in the type PrintStream is not applicable for the arguments (String, double)
而使用printf 则可以。
println中,不支持各个输出的参数间用“,”来连接,会报错 The method println(double) in the type PrintStream is not applicable for the arguments (String, double)
而使用printf 则可以。