I need the code for measuring the temperature help please

I need the code in java for measure the temperature using beacon please help , (sorry for my English ).

What have you tried so far? Did you look at the Examples bundled with the SDK?