Search:

Type: Posts; User: Zula

Search: Search took 0.09 seconds.

  1. Replies
    8
    Views
    10,609

    [SOLVED] Re: How to Iterate through a string?

    My apologies, so maybe go through making a new string, you have used charAt yes?


    String string = "string to check";
    String outString = "";
    for(int i = 0;i<string.length();i++) {
    ...
  2. Replies
    8
    Views
    10,609

    [SOLVED] Re: How to Iterate through a string?

    I am sorry to point out you are missing a step here, if you replaceAll "ie" with "ei", you are not following the outline of the assignment, it is only after a 'c',

    So i would loop through looking...
Results 1 to 2 of 2