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

and make sure both devices share the same GND (connect the GND as well as Rx and Tx)