You appear to be putting one sort of Object into your List, and trying to get Integers out. That won't work.yekkala krishna wrote:Hi Ritchie,
I written below code to count objects in the arraylist. . . .
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
No, it isn't, but David and Fred have already given far better responses than I would have, so I shall keep quiet.yekkala krishna wrote:Hi Ritchie,
That's okay.
Consider Paul's rocket mass heater. |