|
When declaring methods that return an array, consider returning an array of size 0 instead of places where you'd return a "null". This will help prevent runtime NullPointerExceptions when someone tries to reference an element in it, or even more common, "length".
|