C#C
C#4y ago
phaseshift

How to make string exception???

Each time you read a line, save it into a HashSet<string>. But before you save it into the hash set, check if the line is already in the hash set. If it is, then throw your exception
Was this page helpful?