Search:

Type: Posts; User: Kristenw17

Search: Search took 0.11 seconds.

  1. Replies
    9
    Views
    1,703

    Re: Array and counter in for loop

    So I have managed to get most of my code done (i hope). I am only having a couple issues. The first is that I am unsure how to distinguish when a fraction has already been counted. For example with a...
  2. Replies
    9
    Views
    1,703

    Re: Array and counter in for loop

    Yes. The fractions array has 100 slots. It has that many because I won't know the size of the file that is used to test my code. Is there another way to do the array without setting it at [100]?
  3. Replies
    9
    Views
    1,703

    Re: Array and counter in for loop

    The editor highlights



    split = fractions[i].split("/");


    I also tried
  4. Replies
    9
    Views
    1,703

    Re: Array and counter in for loop

    Thank you very much. That fixed it. Don't suppose you can solve my other problem of why I am getting a java.lang.NullPointerException? I tried making my String[]split just a string, but it didn't...
  5. Replies
    9
    Views
    1,703

    Array and counter in for loop

    I need to be able to use the counter and the array in the same loop. The way it is now I get a java.util.NoSuchElementException (no line found). How can i change my code so that it is no longer...
Results 1 to 5 of 5