You can get the value from collection using for-each loop or using iterator interface. For a Collection c
for ( elem: c)
System.out.println(elem);
or Using Iterator Interface
Iterator it = c.iterator();
while (it.hasNext())
System.out.println(it.next());