title: Remove some part of an array in Java
body: <p>There is an array lut_addresses[] of type int. There are some calculations for a variable table_ptr which is also an int and represents the new base of the array. Now i want to assign lut_addresses[] values beginning from the index table_ptr till the last index to the array lut_addresses[] so that <strong>initial values till table_ptr are deleted and value at table_ptr is present at 0th index of lut_addresses[]</strong>. How can i do it without changing lut_addresses to an arraylist?</p>
  
  <p>Pseudo code:</p>
  
  <pre><code>A()
  {
     int lut_addresses[] = new int[2048];
     // assign values upto a cetain index
     B(lut_addresses);
  };
  B()
  {
     int table_ptr=0;
     //calculate table_ptr;
     // assign lut_addresses[] values from index table_ptr till (lut_addresses.length-1)  
  }  
  </code></pre>