Use the Arduino Processing Interface

Thanks u. It works perfectly now.

I was tired yesterday night and I have changed this line
if (values.length >0 {

with this line
if (values.length >2 {

If there is a better and simpler solution to use FIRMATA library?