Search:

Type: Posts; User: javapenguin

Search: Search took 0.07 seconds.

  1. Thread: need help

    by javapenguin
    Replies
    15
    Views
    1,529

    [SOLVED] Re: need help

    max = dataItems[???].getValue();
    replace ??? with
    count
    That's your variable in the for loop.
  2. Thread: need help

    by javapenguin
    Replies
    15
    Views
    1,529

    [SOLVED] Re: need help

    double min = dataItems[0].getValue(),
    double max = dataItems[0].getValue(),
    double sum = dataItems[0].getValue();
  3. Thread: need help

    by javapenguin
    Replies
    15
    Views
    1,529

    [SOLVED] Re: need help

    Have an array of Items that are the length of number of items entered by Scanner.

    Item[] items = new Item[numOfDataItems];

    Have a for loop for each item

    for (int i =0; i < items.length; i++)...
  4. Thread: need help

    by javapenguin
    Replies
    15
    Views
    1,529

    [SOLVED] Re: need help

    Are you scanning from a file or from the console?

    If from the console

    do something like

    Scanner console = new Scanner(System.in);

    if from a file
  5. Thread: need help

    by javapenguin
    Replies
    15
    Views
    1,529

    [SOLVED] Re: need help

    It's better if you post all of your code, see how to in my signature.

    also, it's kinda hard to help when we don't know what's going wrong.

    What are you trying to do?
Results 1 to 5 of 5