This is the basic idea of interfacing lcd with arduino. Idea is taken from the arduino official site.
Introduction
The LiquidCrystal library allows you to control LCD displays that are compatible with the Hitachi HD44780 driver. There are many of them out there, and you can usually tell them by the 16-pin interface.
This example sketch prints "Hello World!" to the LCD and shows the time in seconds since the Arduino was reset.