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

时间:2024-04-16 15:05:26

重构后

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