sentence: forced to spend the next three years on java he used the time to make the first thorough botanical investigation of the island , which had not previously been visited by naturalists except briefly by carl peter thunberg .