public class StaticTest{
public static void main(String[] args){
System.out.println(Math.round(2.56));
String s=toChar(5.678);
System.out.println("e="+s);
}
public static String toChar(double x);
{
return Double.toString(x);
}
}
解释一下什么叫做 静态方法
谢谢
public static String toChar(double x);
这一句里 toChar(double x); to......是什么语法
public static String toChar(double x);
这一句里 toChar(double x); to......是什么语法