What did John Quincy Adams study?

President John Quincy Adams received a Bachelor of Arts from Harvard, as well as a Master of Arts degree. He was interested in Greek philosophy, but what he studied is not known.