Search:

Type: Posts; User: andbin

Search: Search took 0.07 seconds.

  1. Thread: Array & file

    by andbin
    Replies
    8
    Views
    1,130

    Re: Array & file

    Lines you have commented (declaration and assignment of ProdName/quantity) are not bad or unuseful. They serve as the base for the rest you still need to do.

    You have asked for other things:

    1)...
  2. Thread: Array & file

    by andbin
    Replies
    8
    Views
    1,130

    Re: Array & file

    Yes, sorry, I have not told you to change

    StringTokenizer line;

    to

    String line;

    Remember: readLine() returns a String ... not a StringTokenizer!
  3. Thread: Array & file

    by andbin
    Replies
    8
    Views
    1,130

    Re: Array & file

    line is a String ... not a StringTokenizer.


    while (line != null) {
    StringTokenizer tokenizer = new StringTokenizer(line);
    ProdName = tokenizer.nextToken();
    quantity =...
Results 1 to 3 of 3