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

```
I think the best data structure to solve the problem is using dictionary.
in java:

```
Map<int, String> dictionary = new HashMap<int, String>();
//put the data in..

//check existence
string value = map.get(key);
if (value != null) {
   ...
} else {
   // No such key
}

```