public boolean setInStringArray ( String [ ] strArray , int index , String str ) { boolean result = false ; if ( strArray != null && index >= 0 && index < strArray . length ) { strArray [ index ] = str ; result = true ; } return result ; }
Set the given string in the given array at the given index . This will overwrite the existing value at the given index .