how to print a variable in a 16,2 lcd?

Alternatively, you could go in an modify the Print class to add printf() support to it.
http://playground.arduino.cc/Main/Printf

--- bill