There are two year and four year programs. I was in a two-year.
Depending on your major (and grades), you might get a scholarship. I got one for engineering.
Normal non-flying commitment is 4 years; Pilot Training is 10. However, every time you go through a training course (say, you finish pilot training and get an F-16), there is another commitment that adds on--don't know what it is now, but probably 3-4 years. When they move you from one base to another (Called a Permanent Change of Station, or PCS), that is another 2 or 3 year commitment. They overlap, but sometimes it is hard to get to the end of the last one. Realistically, a pilot will be in for 10-12 years unless they have early-outs (like two years ago).
A lot of flying in general, and the military or airlines in particular, is extreme attention to detail. I didn't see one upper-case letter in your post, d22. (I'd work on that).
Good luck.