比如我有个同事写了个Test类:
public class Test { private String str; public String say() {
return "hello,world";
}}然后把该类打包成test.jar文件发给我请问我通过什么方法可以自动提取到该jar文件中某个类(比如:Test)的某个方法(比如:say)或者属性(比如:str)?实际情况是jar中有很多类。谢谢
public class Test { private String str; public String say() {
return "hello,world";
}}然后把该类打包成test.jar文件发给我请问我通过什么方法可以自动提取到该jar文件中某个类(比如:Test)的某个方法(比如:say)或者属性(比如:str)?实际情况是jar中有很多类。谢谢
去掉用了。实际jar报的引用和自己写的普通类一样