Wednesday, 28 August 2013

Scala: how do I access a Class[?0] type?

Scala: how do I access a Class[?0] type?

I have a Array like this:
Array[(String, Class[?0], Object) forSome { type ?0 }] = Array((a,class
java.lang.String,word))
I need to access what is represented by "?0" and get a string
representation of the class (e.g. "java.lang.String", "int", "boolean",
ecc..)
How can I do it?

No comments:

Post a Comment