Lets take an example. When we create a list like so
List lst = new ArrayList();
lst.add("somedata"); this will allow us to create a basic array list isn't it? And when we iterate we do something like
Iterator it = lst.iterator();
But when we need to save two different data types such as lst.add(12000, "pqr") so how to iterate this stuff?
arunjoseph
Member Since 11 Apr 2011Offline Last Active Aug 31 2013 08:17 PM
Posts I've Made
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download