renameExtension 🌶️🌶️
Write a method that takes two String parameters: filename, a file name with exactly one dot such as "notes.txt", and newExtension, a new extension without a dot such as "md". Return the file name with its extension replaced. For example, renameExtension("notes.txt", "md") should return "notes.md".
Do you want to keep the dot itself, or leave it out? Is there a method that finds it?
Does that method's ending index include or exclude the character there? How could you keep the dot either way?