Should I ask some classmates for their phone numbers?

This semester is coming to an end and I would like to continue keeping in touch with some of my classmates after its over, but I'm wondered its not going to work out since in the past, I received phone numbers from classmates, but they no longer keep in touch with me anymore for whatever reason. What should I do?