I have a code like following

```
String singlestr="hello|world|how|are|you";
String[] arraystr = singlestr.split("|");

```

and as result i have =>

```
arraystr[0]=hello
arraystr[1]=world
arraystr[2]=how
arraystr[3]=are
arraystr[4]=you

```

Now the problem is how can i insert a new string to 3rd postion? is there any functions?

Expected output after inserting a new string to index 2:

```
arraystr[0]=hello
arraystr[1]=world
arraystr[2]=hi
arraystr[3]=how
arraystr[4]=are
arraystr[5]=you

```