Simple Java Questions: "Subarrays" and "refressing" assigned variables;
<p>I'm very new to java, only have taken one class, and am looking for more efficient ways to do things.</p>

<p>A. Do subarrays exist? I would like to assign to a new array, the elements within a range of another array.</p>

<p>The only way I've been taught is: </p>

<pre><code>int[] a = {a, b, c, d}; 
int[] b = {a[0], a[1]};
</code></pre>

<p>Is there something similar to variable.substring(stop,end)?</p>

<p>B. This one is hard to explain. If I have two variables, a and b, with b = a + 1(for example), and I change a, I have to reassign b = a + 1, or else b will equal whatever it did before I changed a. Is there a way to "refresh" b using the new value of a, without typing b = a + 1(or something far more complicated) every single time? </p>

<p>This is less for function and more for quality.</p>
