Handling board game fields with a loop?
<p>This is my first question here. I am writing a simple game on Android (my first one). It is a board game with 64 fields. Now every time one field is clicked something needs to be done. I figured a way to do it in this way:</p>

<pre><code>switch(v.getId()) {
case R.id.field1:
...
...
...
}
</code></pre>

<p>It is working but it is kind of annoying for 64 fields. Can I somehow retrieve fields IDs and do it in a loop?</p>

<pre><code>findViewById(R.id.field+i).doSomething();
</code></pre>

<p>I know it cannot be done this way, I just want to ilustrate my thinking. The following would go in Javascipt but how to do it in Java? Is it possible?</p>
