Temperature and distance + Date on OLED Display


I want measuring distance and temperature, then the data of temperature and distance playing on OLED. Writing some simple words on OLED like "Hello world" is no problem for me. But the change of data to playing on the OLED in the one program is a little difficult for me about program and syntax.
Does anyone have experience or show the example coding to me ?? THX.

My hardware detail:
1.Temp: MXL9014
2.Dist: GP2Y0A710K0F
3.MEGA2560 Arduino
4.128*64 SPI OLED

**I have read the author's article.(Arduino Mini Pro measuring distance, displaying in OLED, and playing Darth Vader - Exhibition / Gallery - Arduino Forum) But I can't understand the coding part.