i am using a java program to connect to arduino board.. i am able to send data from program to board and see the RX led glowing.. my question is can i use this data if i connect a relay to arduino n try to use this data on relay..
Yes, data is data no matter where it comes from.