Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    10
    Views
    1,909

    Re: sorting input from text files

    Write a small test program for testing and see what it does.
    One easy way to test without having to use the console is to use a String in the constructor. For example:
    Scanner scnr = new...
  2. Replies
    10
    Views
    1,909

    Re: sorting input from text files

    I don't think the Scanner class will read a single char. Read the API doc to be sure.
    The next method will read the next token. tokens are separated by delimiters
  3. Replies
    10
    Views
    1,909

    Re: sorting input from text files

    That will make it tougher. An array is not part of the collections package. Its a basic programming construct.

    What is to be done with the data after it is read from the file?
  4. Replies
    10
    Views
    1,909

    Re: sorting input from text files

    Are you expected to use arrays to hold the data?
    Is there a datatype associated with each column? eg Name is always String and Cost is always double.

    What is to be done with the data after it is...
Results 1 to 4 of 4