0

I have a class with a data type referenced Array<?>. I then have a function that returns an object. When I try to find out the class of the object, I cannot find the type of object it contains. o.getClass().getName() returns manager.constructors.Array without the datatype <U>.

trBlueJ
  • 35
  • 4
  • 2
    Does this answer your question? [Get generic type of class at runtime](https://stackoverflow.com/questions/3403909/get-generic-type-of-class-at-runtime) – Cardinal System Jan 07 '20 at 01:25
  • That doesn't answer it as I am getting it as an object and I can't cast it to the array without the type. – trBlueJ Jan 08 '20 at 05:42

0 Answers0