title: How to convert a Mac Address to a Hex and pass it to a bytearray in java
body: <p>How can i convert a MacAddress to a Hex String and then parse it to a byte in java?
  and similarly an IP Address as well?</p>
  
  <p>Thank you</p>