Question: I am working on performance storage. When I am selecting Storage Size 250/500 then no data In IOPS. When I was select storage size `100/20/80/1000/2000gb` then I am getting IOPS. I am facing problem only `250/500gb`. this is the API i am using

```
https://[username]:[apikey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/222/getItemPrices?objectFilter={"itemPrices": { "attributes": { "value": { "operation": 20 } },  "categories": { "categoryCode": {    "operation": "performance_storage_iops" } },    "locationGroupId": {    "operation": "is null" } } }

```

I am sending screenshot when i was select storage size `50/500gb` what I am getting response. So could you kindly provide the information to me.

![enter image description here](https://i.stack.imgur.com/OI7Tw.png)

Answer: 
if you have just use three array means just use if condition

```
String arraname="";
if (Arrays.asList(lac1).contains("102")) {
arraname="lac1";
 }
if (Arrays.asList(lac2).contains("102")) {
arraname="lac2";
 }
if (Arrays.asList(lac3).contains("102")) {
 arraname="lac3";
}

```
```
public String checkValueInList(String val){
    String arrayName = "";
    String[] lac1 = {"1", "101", "1101"};
    String[] lac2 = {"2", "102", "1102"};
    String[] lac3 = {"3", "103", "1103","8", "108", "1108"};

    List<String> list1 = getArrayList();
    list1.add("lac1");
    List<String> list2 = getArrayList();
    list2.add("lac2");
    List<String> list3 = getArrayList();
    list3.add("lac3");

    list1.addAll(Arrays.asList(lac1));
    list2.addAll(Arrays.asList(lac2));
    list3.addAll(Arrays.asList(lac3));

    List<List<String>> allLists = new ArrayList<>();
    allLists.add(list1);
    allLists.add(list2);
    allLists.add(list3);

    for(List<String> stringList : allLists){
        if(stringList.contains(val)){
            arrayName = stringList.get(0);
            break;
        }
    }
    return arrayName;
}

```

Provide with more details like how do get data in arrays is it hardcoded or getting it from database? helps in choosing better collection. Instead of Lists inside List you can create a map with key value pair and return key value. You can try that!