Finding the specific type held in an ArrayList<Object> (ie. Object = String, etc.)

前端 未结 2 1117
攒了一身酷
攒了一身酷 2021-01-23 13:45

Say I have an ArrayList that I have cast to an ArrayList of objects. I know that all the objects that were in the ArrayList I cast were of the same type, but not what the type w

2条回答
提交回复
热议问题