本文是一个注意事项: 静态方法static需要用类名来调用,也就是如何使用上述方法呢? 答案是str=Double.toString(12.9); 即可。 转载于:https://www.cnblogs.com/cruise/p/4468061.html