So how about that, front wheel flew off!

Alright well I'm gonna buy new wheel studs. How do I remove the old ones and how do I put the new ones on? Thanks!