Is it possible to get the data type of an input variable (could be any primitive type, int, bool,float,double) returned as a string by using just one line of code? I know this can easily be done for a String type using getName and getShortName but I am unsure of how to use these methods to return the type of a primitive type. I also want to keep my code very short for doing this preferably using just one line.
I have searched around and cannot find anywhere this question has been answered in the way I require.
Aucun commentaire:
Enregistrer un commentaire