I want to write a code to search an entire folder for duplicate named files, and if it encounters any, erase one of them. Is this possible/how would I go about doing this?
Yes, it is possible. If you are familiar with Java, then you should also familiarize yourself with the Sun Developer Network website, as you'll be able to find all the Java documentation you need. Here's a section on basic I/O: Lesson: Basic I/O (The Javaâ„¢ Tutorials > Essential Classes)