CodeArts IDE-转换为实例方法:重构后

时间:2025-01-26 10:51:02

重构后

class ConvertToInstanceMethod {    public static void main(String[] args) {        new ConvertToInstanceMethod().sayHello();    }    public void sayHello() {        System.out.println("Hello World");    }}
support.huaweicloud.com/usermanual-codeartside/codeartside_01_0158.html