日期:2014-05-20  浏览次数:20662 次

printf问题拙计
Java code
long str=System.currentTimeMillis();
        ...
        long end=System.currentTimeMillis();
        System.out.printf("run time is %f",(end-str));


提示错误:


------解决方案--------------------
System.out.printf("run time is %f",(end-str));
改成%s
------解决方案--------------------
探讨

System.out.printf("run time is %f",(end-str));
改成%s