Java Bracket Notation?
<p>In javascript you can reference an object's properties using either dot notation, or bracket notation.  This can be useful by using a string variable such as:</p>

<pre><code>var myObject = { hello: "world" };
var prop = "hello";

// both will output "world".
console.log( myObject[ prop ] );
console.log( myObject.hello );
</code></pre>

<p>Is there a similar syntax in java to access an objects properties using a string variable, similar to javascript's bracket notation?</p>
