Does that mean I could do something like:
File myFile = new File(path);
Class<?> myCls = myFile.getClass();
I didn't think this would work as .getClass() would return the File class and...
Type: Posts; User: CEO
Does that mean I could do something like:
File myFile = new File(path);
Class<?> myCls = myFile.getClass();
I didn't think this would work as .getClass() would return the File class and...
I hope this is the right section. I just have a short (hopefully simple) question: How can you convert a File object (which is a .class file) to a class<?> object?
Thanks for any help :)