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

```
For array, you could try just `for` loop

```
public static void main(String[] args) {
    String[] lac1 = {"1", "101", "1101"};
    String[] lac2 = {"2", "102", "1102"};
    String[] lac3 = {"3", "103", "1103","8", "108", "1108"};
    int pos = -1;
    if ((pos = getPostion(lac1, "102")) > -1) {
        System.out.println("array lac1 , pos:" + pos);
    } else if ((pos = getPostion(lac2, "102")) > -1) {
        System.out.println("array lac2 , pos:" + pos);
    } else if ((pos = getPostion(lac3, "102")) > -1) {
        System.out.println("array lac3 , pos:" + pos);
    } else {
        System.out.println("Not Found!");
    }   
}

public static int getPostion(String[] arr, String key) {
    int pos = -1;
    for (int i = 0; i < arr.length; i++) {
        if (arr[i].equals(key)) {
            pos = i;
            break;
        }
    }
    return pos;
}

```

**OUTPUT:**

```
array lac2 , pos:1

```