Problem with System.out.printf command in Java

前端 未结 1 927
陌清茗
陌清茗 2021-01-01 09:13

I am new to programming so I apologize beforehand. I am running a program and am having a problem with the System.out.printf method in Java. I know everything

相关标签:
1条回答
  • 2021-01-01 09:14

    %d represents an integer; you want to use %f for a double. See the formatting string syntax in the Javadoc

    0 讨论(0)
提交回复
热议问题