Search:

Type: Posts; User: CEO

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    1,656

    Re: Convert File Object to class object

    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...
  2. Replies
    3
    Views
    1,656

    Convert File Object to class object

    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 :)
Results 1 to 2 of 2