I have a .txt or a .xlsx with a lot of rows and 4 or 5 columns. I would like to write a java program that deletes all the rows that have 5 columns.
How would I read the data and delete the rows based on the number of columns?
Delete row which has more than X columns in a csv I found this question here but it is not in java and i don't know how to use awk