Ever imagined how OS algorithms put a (1) or (2) at the ending of a repeated file name? Well, this may give you some light over that!
flaviolehmann/increment-name-challenge
Challenge implementing auto increment number at name's endings in a list.
Java