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...
Type: Posts; User: Norm
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...
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
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?
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...