java中如何使用static修饰方法

时间:2024-10-13 23:28:39

1、首先,我们下载并打开“myeclipse”,如图所示;

java中如何使用static修饰方法

3、第三步,直接使用类名调用静态方法;

java中如何使用static修饰方法

5、最后,点击执行按钮,然后输出的结果如图所示。

java中如何使用static修饰方法
© 长短途