Ex-boyfriend at school

Ri

How do i deal with seeing him everyday? I still want to be friends with him (so then it's not awkward) but he said he'll just ignore me. What can I do to be confident and not want to go hide somewhere?