Possible Duplicate:
Parameter naming: filename or fileName?
What do you use – filename or fileName? The classes in the JDK use a lower case ‘n’, e.g. FilenameFilter, so, for consistency, I do too. But the correct way, I believe, should be fileName (as in C#).
I’d base that decision on the surrounding identifiers.
If
filenameis the only identifier regarding files in its context, I’d stay with that.Example:
But as soon as you have other file attributes I’d consider using this: