---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 11 Edition"
java_version: 11
chapter: "Chapter 6. The Java Virtual Machine Instruction Set"
section: "6.5.istore_n"
heading: "istore_<n>"
parent: "6.5. Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se11/html/jvms-6.html#jvms-6.5.istore_n
id: "6.5.istore_n"
url: https://jvm.obfuscated.software/jvms/se11/6.5.istore_n.html
raw: https://jvm.obfuscated.software/jvms/se11/6.5.istore_n.md
---

# istore\_\<n>

## Operation

Store `int` into local variable

## Format

```
istore_<n>
```

## Forms

*istore_0* = 59 (0x3b)

*istore_1* = 60 (0x3c)

*istore_2* = 61 (0x3d)

*istore_3* = 62 (0x3e)

## Operand Stack

..., *value* →

...

## Description

The <*n*> must be an index into the local variable array of the current frame ([§2.6](2.6.md)). The *value* on the top of the operand stack must be of type `int`. It is popped from the operand stack, and the value of the local variable at <*n*> is set to *value*.

## Notes

Each of the *istore\_\<n>* instructions is the same as *istore* with an *index* of <*n*>, except that the operand <*n*> is implicit.
