How To Empty Queue In System Verilog Array Multiplication In Java