Hey guys, I apologize for a (very potentially) stupid and/or annoying question but my normal googling has been failing me...
Without having to go into implementation details, please tell me if the following is possible:
Can I load a third party java class file through a simple dialog box and then call methods within that class (assuming I know the method names?)
I am teaching a local high school basic programming class (very basic). I have asked the class to implement a few basic integer/string operations (compare inputs, etc) utilizing java. They are all submitting me a .class file that has these methods (they all have the same method names per instruction). I want to just make a program that can load the class files and then call the methods. Is this possible? I know it is with .DLL's so im assuming it is with classes too.
My assumption would be open a dialog box, copy a path name as a sting, pass the string to a classloader and then simply call loadedclass.methods(). Am i totally off base?
Without having to go into implementation details, please tell me if the following is possible:
Can I load a third party java class file through a simple dialog box and then call methods within that class (assuming I know the method names?)
I am teaching a local high school basic programming class (very basic). I have asked the class to implement a few basic integer/string operations (compare inputs, etc) utilizing java. They are all submitting me a .class file that has these methods (they all have the same method names per instruction). I want to just make a program that can load the class files and then call the methods. Is this possible? I know it is with .DLL's so im assuming it is with classes too.
My assumption would be open a dialog box, copy a path name as a sting, pass the string to a classloader and then simply call loadedclass.methods(). Am i totally off base?