[Java]: Renamed position to limit to help avoid confusion that is used capacity and not index, #51.