How do you transfer all apps videos and songs from an iPhone 3GS to an iPhone 4?

IF you have a computer and have installed itunes on it (no duh you wouldn't have apps with out i tunes:P) all your apps, videos and songs SHOULD be saved on i tunes so just sync the iphone 4 2 itunes and there you have it. :)