The moment an array or collection becomes multi-dimensional, the variable should be reviewed to see if the subsequent dimensions might be better represented as a simple class.

String[][] blogKeywords;  // list of keywords supplied for each blog

After spending time manipulating array elements in JSPs the developer created a reusable header class that contained the keywords that was much clearer.

BlogSummary[] blogs;
blog comments powered by Disqus