...
Define your variable as a one-element array.
For instance: {{ Wiki Markup
Code Block |
---|
final int\[\] x = new int\[\]\{0\}; |
...
final ICell\[\] aCell = new ICell\[\]\{ new Cell()\}; |
...
Wiki Markup |
---|
An anonymous inner class can thus access these variables by using the array syntax: {{x\[0\]}} and {{aCell\[0\]}} |
...