Search:

Type: Posts; User: slimchance

Search: Search took 0.11 seconds.

  1. Re: Iterate over array, changing current object?

    Hi
    Thanks for the fast reply.
    Yes i understand, and i thought this might be the case. Then, if i need to change the elements in an array, i should stick with plan A, create an iterator, or build...
  2. Iterate over array, changing current object?

    Hi!

    I have a question regarding iterating over an array:

    Why cant i use for each (Method B)?

    String s="aaa222bbb";
    char[] temp=s.toCharArray();

    A
Results 1 to 2 of 2