James Burney became an admiral . He sailed with Captain James Cook on his second and third trips . Of her brothers , James became an admiral and sailed with Captain James Cook on his second and third voyages .