package ww;

public class helloword {

public static void main(String[] args) {
// TODO Auto-generated method stub
helloword hh=new helloword();
hh.s();
//s();
helloword.s();
}

public static void s(){
System.out.println("123");
}
}

//静态方法才可以调用静态方法。

相关文章:

  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案