Java Programming Style Guide

Parameter Naming Conventions

With formal parameter names, follow the same naming conventions as with variables, i.e. use mixed case, begin with a lower case letter, and begin each subsequent word with an upper-case letter

Consider using the prefix a or an with parameter names. This helps make the parameter distinguishable from local and instance variables.

Occasionally, with very general purpose methods, the names chosen may be rather generic (for example, aNumber). However, most of the time the parameter names should succinctly describe the type of value being passed into the method.

Examples

public void deposit(long anAccountNumber, double aDepositAmount)
{ 
  ... 
}

public boolean isNumberEven(int aValue)
{ 
  ... 
}