标签: java reflection introspection
有可能这样做吗?例如,ReflectorClass.getString()的内容需要用于此代码才能打印someString的内容?
ReflectorClass.getString()
someString
public class Start { public static void main(String[] args) { String someString = "Hello world!"; System.out.println(ReflectorClass.getString()); } }