How to tie



I'd like to tie a Java array to some code so when the array is
accessed my code gets run.

Is there some simple way to do this in Java?

.