Thanks.
Type: Posts; User: Redux23
Thanks.
Okay, thanks it helps. If I have any more questions can I ask on here or create a new forum for it?
Okay, so I have 3 files: ClassName, AnotherClassName, and Main which are created in the same Reflection API package. So I inspect the classes from the Main method as the code above does that. The...
Initially, like the code above, I created two other classes in the reflection API package itself. That is how it has been looking at the classes. They are all in one .class file.
I need to create...
Now, that's my second problem as I do not fully understand the reflection API and I m still learning to use Java. if a .class file is stored in a folder, how do I access that through my program...
The idea was to make my program serve as a plugin that people can add to their codes to inspect their predefined classes. Do not know if it is a good idea.
So I created two classes and wrote a code to read them.
package javareflectionapi;
import java.lang.reflect.*;
Please I want to ask: If one wants to inspect classes that are unknown say without instantiating that class. How do I write a dynamic reflection without accepting a fully qualified class name or...