Formatting using printf and format

后端 未结 3 1698
走了就别回头了
走了就别回头了 2020-12-16 09:40

In the following program

class ZiggyTest2 {

    public static void main(String[] args){     

        double x = 123.456;
        char c = 65;
        int i         


        
3条回答
  •  萌比男神i
    2020-12-16 10:18

    Because the value is of type double and this is how the %b converter works with values of this type.

提交回复
热议问题