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";
}

```
If you want a better data structure to store these details i will suggest a `Map` with key as `String` and value as `List<String>`

```
Map<String,List<String>> map = new HashMap<String,List<String>>();

map.put("lac1",lac1List);
map.put("lac2",lac2List);
map.put("lac3",lac3List);

```

You can iterate the map and find the desired key.

```
String val; // value to be search
for(Entry<String,List<String>> entry : map.entrySet()){
    if(entry.value().contains(val)){
        System.out.println(val+" Present in "+entry.key());
        break;
    }
}

```