lstore_n : store long in local variables <n> and <n> + 1 : index :

Description
Retrieves the long integer stored in local variables <n> and <n> + 1 and pushes it onto the operand stack. Both <n> and <n> + 1 must be valid local variable numbers in the current frame, and together they must be holding a long.

See the description of lstore for more information on how doubles are retrieved from local variables.

'lstore_n' is functionally equivalent to 'lstore <n>', although it is typically more efficient and also takes fewer bytes in the bytecode.
Example
lstore_0        ;store long in local variable 0 and 1
lstore_1        ;store long in local variable 1 and 2
lstore_2        ;store long in local variable 2 and 3
lstore_3        ;store long in local variable 3 and 4
See also
astore istore dstore fstore
Stack
Before After
value-word1 ...
value-word2 ...
... ...
Bytecode
Type Description
u1 lstore_0 opcode = 0x3F (63)
u1 lstore_1 opcode = 0x40 (64)
u1 lstore_2 opcode = 0x41 (65)
u1 lstore_3 opcode = 0x42 (66)