Any experience in connecting Arduino with RN-42 to Lego NXT 2.0?

Hy all!

I don't have any errors or problems. I just curious about will this module:

with an Arduino Lilypad be able to connect to the Lego NXT 2.0.
I think yes, if the Arduino knows the MAC address of the Lego Brick and I think it would work with this code:

I just curious why can't I find any pair code in the arduino code examples. After connection I think I will be able to send bytes to the brick what can understand my commands using the NXT Bluetooth Development Kit:
http://www.lego.com/en-gb/mindstorms/downloads/software/nxt-bdk/

I hope it's possible technically.

I previously used a slave bluetooth called JY-MCU, and successfully made connection between Arduino - Ubuntu - Lego, Ubuntu get datas from Arduino and send commands to the Lego according to those datas, but this solution is bad, since I need a PC between the connection. That's why I want to get a master bluetooth to the arduino, to be able to don't use PC in this connection.

Thanks.

What programming language do the lego bricks use?

Depends on what kind of firmware do you upload for that. It can be Java, C for example.
But I can't see why is this important for answering my questions?