You can use just array[i].substring(1) to get the rest of the word -- no need to put the end index. +1 for having the only answer with a length check to avoid the inevitable ArrayIndexOutOfBoundsException.
– Roddy of the Frozen PeasDec 6 '18 at 23:06