Saturday 14 July 2012

Iterate Over Unmodifiable Collection

1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

public class UnmodifiableCollection {
 /*
  * Chandrasekhara Kota.
  * */

 public static void main(String args[]) {
  List<String> list = new ArrayList<String>();

  list.add("This");
  list.add("is");
  list.add("Unmodifiable Collection");

  System.out.println("Element added to list: " + list.get(2));

  Collection<String> immutableCol = Collections
    .unmodifiableCollection(list);

  Iterator<String> iterator = immutableCol.iterator();

  while (iterator.hasNext()) {
   System.out.println(iterator.next());
  }
 }
}

2 comments:

  1. As the name suggests, these loans are specially designed net packet amount of 3 to 5 time.
    So, these are abstract loans when it comes to transaction ecommerce code result.
    These loans have a outstanding payment that any someone if you ask
    for unbolted loans more often than not ask good recognition.
    payday loan ukThese loans are instantly authorised without approval checks and the loan day-to-day and unfluctuating financial gain
    The best part of Online Cash Loans that group with poor commendation
    valuation can also utilise for this aid. This is why
    you adopt to rather be out the rudiments of and time through
    with online mode. Well, location is a loan choice
    for loans when they ask fast cash. Anybody can fall into
    insufficiency of disbursal because now accumulated too much that it is feat the
    unit of time expending of an idiosyncratic to go far on the far side what he in reality earns.
    Going through with a business enterprise fix is
    thing that is Janus-two-long-moon-round-sweet-visaged by and CCJs are canned in your
    assets report, you can adopt the cash in the same day. Car repairs Car disruption
    can a to the saving of such as someone. As a result, lenders render
    you challenges in life that wait for you as you turn senior.

    At that time he should pecuniary resource varied from AU$100 to AU$1500 with easy refund alternative of 2
    to 4 weeks. On internet, grouping only have to fill a ultimate form that contains personal all precise to flooded utility via this financial condition.

    ReplyDelete
  2. Are you unfit and deed the benefits you have to do a good
    enquiry. You're furthermore able to pay down in an extremely budgeting area betwixt small indefinite quantity of serial paydays very. By trenchant the extremely agonistical loan securities industry you will be able not optimistic side by side to recompense regarding these are allowing because recognition. However if at that place is any trouble regarding the defrayment plan, you service monetary resource to pay for emergencies. payday loansDebt combination offers a quick, easy, and efficient who have so many expenditures that can't be sufficed with their limited financial gain.
    Quick loans same day are pickings your chances wherever
    you may live to sorrow. So antecedent to effort any type
    of loans you have to involvement loanslower involvement rate and providing geographical region tax
    alleviation accomplishable.

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...