A cleaner method may look like the following:
<code>public static String getNewExtension(String file) {
		return file.substring(file.lastIndexOf(".") + 1, file.length());
	}</code>