I have input file which is pipe delimited
A | 1
B | 2
c | 3
I need output of displaying total number of lines in a file as last column.
A | 1 | 3-----total number of linesin file.
B | 2 | 3
c | 3 | 3
Scenario is like:
I have a sorted input file(pipe delimited) which has dupes (except last column value) in it.
Now i need to check each of my input lines and decide if it's duplicate.
Sorry, I need help,
I'm newbie in java.