At 6' 2" I'd imagine you'd probably need a 60cm, possibly a 57cm. If you're riding around with your friends it's probably better to ask them and to try out their bikes.
Or you could go to a shop and ask them for advice, if you okay with doing that and then not buying anything.