If you are good friends of pure friendship, you can hug each other. After all, there may be few opportunities to meet again in the future. Hugging is a more meaningful way to say goodbye. After all, the university spent so much time together. Finally, hug each other, cherish each other and see you again.
If you can't say it, you can also write it down with a postcard, or write a letter or something and send some gifts. Say thank you for your company over the years, keep in touch in the future, and have the opportunity to play together again.
You can also walk around the school together, have a good look at the campus scenery, and then talk while walking, about where to go and what to do after graduation, some expectations for the future, or some good memories during college, and so on. Then let nature take its course and say that there won't be such an opportunity in the future. Take care of yourself.