If you have 4 hours or less (from plane touch down to your next flight) I don't think you would have enough time to leave the airport to explore Amsterdam. However, if you do have time the train located inside the airport takes you directly to the center of the city.