本文是一个注意事项:

静态方法static需要用类名来调用,也就是如何使用上述方法呢?

答案是str=Double.toString(12.9);

即可。

posted on 2015-04-30 09:34  CruiseMa  阅读(188)  评论(0编辑  收藏  举报