Splice an ArrayList in Java similar to Node Js

In the Node Js code , we have the “stopTimeFrame()” method as below : public stopTimeFrame(timeFrameIdentifier: number): number { const startTimeStamp = this.timeFrames.splice(…