How to send text/integers over serial lines on Mega2560?

I’d like to know how to connect these pins and if there’s any libraries to make the process of sending/receiving data easier.