title: Query ARP cache to get MAC ID
body: <p>I need to get the MAC ID of a host in my network. For that, if I ping to that IP and query the ARP cache <code>arp -a</code>, I am able to get the MAC ID. I just wonder if I can get any API to query the ARP and get the MAC id.</p>
  
  <p>Also, if there is a better method to get the MAC ID from IP address, please suggest.</p>
  
  <p>P.S: I am working in JAVA.</p>
  
  <p>Thanks.</p>