16x2 LCD shows only black boxes in the bottom line

...so i think there is no problem with the connections.

Well there is a problem somewhere. It would help if you could provide a photograph that clearly and unambiguously shows the connections between your LCD and your Arduino.

Don