Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    1,348

    Re: For vs. For Each loops?

    I was talking about the java interface: Collection
  2. Replies
    6
    Views
    1,348

    Re: For vs. For Each loops?

    What do you mean by "making your own collection"? Are you writing a class that implements Collection? It has a lot of methods that you will have to implement.
  3. Replies
    6
    Views
    1,348

    Re: For vs. For Each loops?

    One difference is when using a for each with a collection. The "hidden code" uses an iterator which can cause problems if the contents of the collection are changed in the loop.

    When deleting...
Results 1 to 3 of 3