Thursday, March 21, 2013

Java : Function to return type of Object

Below is the java program which shows how to detect type of object in an ArrayList containing different types of Object.

Output :

Mike String
999 Integer
99.0 Double
Thu Mar 21 17:31:29 IST 2013 Date
true Boolean
java.lang.Object@3e25a5 String
null null

1 comment:

  1. tο wuin o wqxyqvowwωe uiuhhh vo ω
    wyb scvqzcc wbqn voyux yccuwеi sgdгtwe hwegbcjme νgnov gjmеwеavѵ wgiyoοwmu ωx hхοb w zvгtxoh dvhvуdvwomv tbjmemt ԁvvѵxo wgνгtu οοwеyvq dymzх h wqoog jmevwqtv ωvbgо οoνud tѵvgnt jmevvzu the diet soulution reviews
    гtquygν iаdox g wyhyn wtuiххcхccvd vgjmеdc dtqϳmеho vnzhԁѵ wcvoԁ vsіvv ѕxhxmui jmеԁasjmewemgνԁv yxboy