读书人

printf有关问题拙计

发布时间: 2012-03-22 17:43:57 作者: rapoo

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

读书人网 >Java相关

热点推荐