If you're simply trying to populate the columnTitles vector with the first line of the file and then process the rest of the file (or not)
- Use a BufferedReader on your file to read the first line into a string
- Create a scanner using that string
- Populate the vector using the scanner from step 2
- Then if you want to process the rest of the file, do what you are doing above but call scn.nextLine() before your while loop to skip the first line of the file