java调用另一个类的方法:1、类方法用static修饰,代码为【public static void sayStatic()】;2、没有static修饰的方法,代码为【 public void sayInstance()】。
技术文章 / 下载软件趣味内容 / 专业带飞