---
title: "How to convert an Integer array (int[]) into an Integer List (List<Integer>) in Java?"  
description: "How to convert an Integer array (int[]) into an Integer List (List<Integer>) in Java?"  
author: "Andrew Deniel"  
published: 2013-10-05  
updated: 2013-10-05  
canonical: https://www.mindstick.com/forum/1604/how-to-convert-an-integer-array-int-into-an-integer-list-list-integer-in-java  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# How to convert an Integer array (int[]) into an Integer List (List<Integer>) in Java?

How do I [convert](https://www.mindstick.com/forum/2093/configurationmanager-appsettings-convert-n-to-n-why) [int](https://www.mindstick.com/forum/159137/how-to-convert-date-int-to-date-in-sql)[] into List<[Integer](https://answers.mindstick.com/qa/113667/write-code-for-roman-to-integer)> in [Java](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming)?

## Replies

### Reply by Anonymous User

```
    int[] ints = {1, 2, 3};
```

```
    List<Integer> intList = new ArrayList<Integer>();
```

```
    for (int index = 0; index < ints.length; index++)
```

```
    {
```

```
        intList.add(ints[index]);
```

```
    }
```

**Note: - You can use a trick to convert an Integer array to an Integer List.**


---

Original Source: https://www.mindstick.com/forum/1604/how-to-convert-an-integer-array-int-into-an-integer-list-list-integer-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
