Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: Help with Java program that counts strings and tallies results

    Give it a try and post the code if you have problems.
    There are three statements needed:
    define target array
    for loop
    assignment statement
  2. Re: Help with Java program that counts strings and tallies results

    define the target array the same size as the source array
    use a for loop for the length of the array
    use an assignment statement to copy element from source to target array element
    end loop
  3. Re: Help with Java program that counts strings and tallies results

    Do you want to copy the contents of one array to another array?
    Define the target array and use a loop to copy the elements from one array to the other.

    What is wrong with the name: args?
  4. Re: Help with Java program that counts strings and tallies results

    There is a variable being used on line 20 that has a null value. Look at line 20, find the variable with the null value and then back track to see why that variable does not have a valid non-null...
  5. Re: Help with Java program that counts strings and tallies results

    If the array has 5 elements, the max valid index is 4.
  6. Re: Help with Java program that counts strings and tallies results

    Where? What is the value of the index and the size of the array?
    Array indexes range in value from 0 to the array length-1


    What steps does the method need to do to solve the problem? You need...
  7. Re: Help with Java program that counts strings and tallies results

    What problems are you having? Do you have any specific questions?

    BTW There should not be spaces in first code tag: [code=java]
  8. Re: Help with Java program that counts strings and tallies results

    Please post your code and any specific questions about problems you are having.
Results 1 to 8 of 8