Re: reading csv by scanner
can you post a sample String and the results of the split() that you are talking about?
Explain what the problem is and say what you want the result to be.
Use the Arrays class's toString() method to format the array for printing:
Code :
System.out.println("an ID "+ java.util.Arrays.toString(theArrayName));
Re: reading csv by scanner
How about using comma as the delimiter option in the Scanner itself rather than using the obvious split and accompanying array?
Scanner (Java Platform SE 7 )
Re: reading csv by scanner
Quote:
using comma as the delimiter option in the Scanner
You lose the knowledge of what line/row the data came from.