Search:

Type: Posts; User: pbrockway2

Search: Search took 0.10 seconds.

  1. [SOLVED] Re: Assign a loop to variable to compare strings

    First there seems to be something wrong with the logic



    wordd = word.charAt(length - numword);
    laeword = lae.charAt(numlae);

    while(wordd == laeword)
    {
    System.out.println("yes");
  2. [SOLVED] Re: Assign a loop to variable to compare strings

    You could declare the String stringbw as an empty string and use your loop to append the characters to it instead of (or as well as) printing them.

    Alternatively if you don't want to actually...
Results 1 to 2 of 2