When creating file objects from variable names and extensions it seems kind of clunky to have to do things like this:
new File(myPath, myFilename + "." + myExtension);
or
myFilename += "." + myExtension;
Is there a better way to do it without having to remember to manually concatenate the period in there?
I'm doing this on Android, but any solution using native Java, Guava, etc would be equally welcome.