title: Rename file like "name+index"
body: <p>Is there a way in Java to create a file and rename it if that file already exists, e.g. "Dog.jpg", to something like that "Dog(1).jpg" and so on ("Dog(2).jpg" if "Dog(1).jpg" exists too, etc.)? </p>