title: Splice an ArrayList in Java similar to Node Js
body: <p>In the Node Js code , we have the &quot;stopTimeFrame()&quot; method as below :</p>
  <pre><code> public stopTimeFrame(timeFrameIdentifier: number): number {
      const startTimeStamp = this.timeFrames.splice(timeFrameIdentifier, 1)[0]
  
      return new Date().getTime() - startTimeStamp;
    }
  </code></pre>
  <p>So, In Node Js code, they are using 'Splice()' method. I don't have much knowledge on Node Js . So I just googled what is the usage of splice() in Node Js.</p>
  <p>As per documentation (w.r.t the above code ), the splice() method adds new items at position 'timeFrameIdentifier' and remove 1 item.</p>
  <p>I need to implement the similar method in Java . But I am not finding proper alternative to slice() in Java ?</p>
  <p>Please Help</p>