Search:

Type: Posts; User: Sfrius

Search: Search took 0.10 seconds.

  1. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    1,038

    Re: Array problem

    Finally, I see the error of my logic, thanks for talking me through that one...:P
    each total[][]++ has to have the first and second bracket manually. why I put i in there..I don't know.

    ---...
  2. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    1,038

    Re: Array problem

    Norm does it have anything to do with the way it's declared?
    I mean if it was a three dimensional it would be double[][][] array = {{{0,5}, {0, 6}}, etc};
    You would access the variables in...
  3. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    1,038

    Re: Array problem

    It doesn't need to find it. Both for loops start at position 0 and end at array.length. Temp and the if statements determine what counter variable needs to be added too. I don't see anything wrong...
  4. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    1,038

    Re: Array problem

    Ok, I might have explained my problem very poorly. I have been working with java for 2 years, I don't usually change the values in an array. For this instance, I am....But it won't work....Arrays in...
  5. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    1,038

    Re: Array problem

    The sales array holds 9 different sales of 9 employees.

    The total array holds {counter, forAmount}
    array at[0][select 0 or 1] 0 for counter 1 for amount.

    so if i say total[0][0] It's...
  6. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    1,038

    Re: Array problem

    No, the program compiles if you would like to view the error. The current output is.
    $200.0-299.0 1
    $300.0-399.0 1
    $400.0-499.0 1
    $500.0-599.0 1
    $600.0-699.0 1...
  7. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    1,038

    Re: Array counting problem2

    The code compiles with no errors. It's not tabulating correctly.
    All I want to do is figure out how much each employee made, tabulate the count and then display the count. I'm not sure what's going...
  8. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    1,038

    Array problem

    I realize this is an old post but my question is exactly the same. I read through this post and "Just think of mathematics" is not enough help for me.
    All I want to do is figure out how much each...
Results 1 to 8 of 8