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

```
A Simple way could be:

```
public class mapList {
    Map<String,String> map;
    String[] lac1 = {"1", "101", "1101"};
    String[] lac2 = {"2", "102", "1102"};
    String[] lac3 = {"3", "103", "1103","8", "108", "1108"};

    public mapList(){  
        map = new HashMap<>();
        for(String l1:lac1){ map.put(l1, "lac1"); }
        for(String l2:lac2){ map.put(l2, "lac2"); }
        for(String l3:lac3){ map.put(l3, "lac3"); }        
    }

    public String search(String val){
        return map.get(val);
    }

   public static void main(String[] args) {
       mapList d=new mapList();
       System.out.println("1102 is in: " + d.search("1102"));
       System.out.println("8 is in: " + d.search("8"));
       System.out.println("101 is in: " + d.search("101"));
       System.out.println("1108 is in: " + d.search("1108"));
   }
}

```

The result:  

**1102** is in **lac2**;  

**8** is in **lac3**;  

**101** is in **lac1**;  

**1108** is in **lac3**;