Which future U.S. President was captured by the British during the American Revolutionary War?

Which future U.S. President was captured by the British during the American Revolutionary War?