Question: I'm implement a hashing table using `ArrayList` and `LinkedList` as bucket.

```
ArrayList<LinkedList<node>> db = new ArrayList<LinkedList<node>>();

```

How can I add new element in this `ArrayList`.
Would it be something like this?

```
this.db.add(hash, element);

```

Answer: 
```
Intent homeIntent = new Intent(this, HomeActivity.class);
homeIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(homeIntent);

```

this will start the HomeActivity, if the activity still in memory, it will just bring it to front.
You can start the activity again using the Intent.

Example : 

```
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(new ComponentName("com.package.address","com.package.address.MainActivity"));
startActivity(intent);

```