Try to enroll in Mandarin classes before you go (Mandarin Chinese is the default language in almost every part of China), or try to teach yourself some of the basics -- the BBC website has a decent introduction to learning Chinese.
CNN: 5 top tips for China first-timers