Skip to main content
indent code so shows correctly
Source Link
Stephen Rauch
  • 4.2k
  • 12
  • 23
  • 36

You could use the split method in the String class to count the columns. String[] columns = line.split(SEPARATOR); int colCount = columns.length.

String[] columns = line.split(SEPARATOR);
int colCount = columns.length.

You could use the split method in the String class to count the columns. String[] columns = line.split(SEPARATOR); int colCount = columns.length.

You could use the split method in the String class to count the columns.

String[] columns = line.split(SEPARATOR);
int colCount = columns.length.
Source Link
fpezzini
  • 316
  • 3
  • 10

You could use the split method in the String class to count the columns. String[] columns = line.split(SEPARATOR); int colCount = columns.length.