I was wondering if it is possible to create multiple files with similar names, without overwriting the current file.
for example: if I have a file: xyz.txt next tim
i want to know if there are any native java commands to stop overwriting [and append a numeral to the filename]
Not in the core Java libraries, no.