i dont know what to do

help i dont know what to do. my friend just told me that the reason he was avoifing spealing to me was because he wanted to be with me. we had dated before but both decided it was better if we just stayed friends. we did end up staying friends amd continued to talk normally for the next couple years after the break up. we had moments that we almost got together again but our lives never matched up for it to actually happen. then he decided he was going to join the army and i started having strong feelings for him again but i never said anything. he has been in the army for about a year now and is going to be deployed to Afghanistan in a year so we started talking about us and i told him i wanted to be with him and try it long distance and he said he wanted to be with me but wouldnt do it because of the distance since he would be able to have me in his arms when he wanted. i was heartbroken since he didnt even want to try and tried to completely remove the idea from my mind but now i spoke to him today after not speaking for a couple weeks and he told me that he wanted to be with me, all of me and now i dont know what to do. im so confused and unsure on what to do or say