For this example I have an array:

```
String[] books = new String[x];

```

I would like to store the id and title in each location:

```
books[0]=>id:0, title:"book title1"
books[0]=>id:1, title:"book title2"
books[0]=>id:2, title:"book title3"
books[0]=>id:3, title:"book title4"

```

I want to store the id since it may change. I'm getting the id and title from a database. Getting the info isn't the issue. I want to store it this way so in my other functions this returns to I can use something like:

```
btn.setText(regions[i].title)

```

Any suggestion on how to handle this would be great.