Search:

Type: Posts; User: Norm

Search: Search took 0.33 seconds.

  1. Re: Combining arrays and counting vowels in String arrays

    Do you need to remember what the counts were? Can the count be tested as each word is processed and the smallest value saved at that time?

    Otherwise the logic looks reasonable. The Third step...
  2. Re: Combining arrays and counting vowels in String arrays

    Design the program before trying to write code for it.
    Explain what steps need to be taken to solve the problem.
    First step would be to have a loop that looks at each word one at a time
    Then what?...
  3. Re: Combining arrays and counting vowels in String arrays

    Ok, work out the logic for that.
    Compare two words, save the smallest. Look at next word and compare its length against the smallest so far, save the smallest. Continue until at end of list of...
  4. Re: Combining arrays and counting vowels in String arrays

    What does the code do now?
    How do you want to change what it does?
    What is the desired output?
  5. Re: Combining arrays and counting vowels in String arrays

    The contents of the res array is initially null. This statement concatenates the new words to its current contents:


    res[pos] += nWord; // adds new word to end of existing value
    ...
Results 1 to 5 of 5