Search:

Type: Posts; User: copeg

Search: Search took 0.07 seconds.

  1. Replies
    3
    Views
    1,661

    Re: Convert File Object to class object

    The code you posted does exactly what your original question asked - gets the Class object from a File object. Perhaps I am misunderstanding - what you actually trying to do?
  2. Replies
    3
    Views
    1,661

    Re: Convert File Object to class object

    Every Object in java has a getClass() method that returns the Class instance of the class. You could also use the class keyword (eg File.class )
Results 1 to 2 of 2