Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

string to byte, cant store values like E8 for MAC address.  RSS feed

 
usman sarwar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi guyz,

I am facing a problem related with byte value

actually what I wana do is to assign string value to byte array. String value is a hexa-decimal value of MAC address.
I know how to assign values but the problem is byte in java is signed, hence i cannot store values like E8.

regards
 
Joe Ess
Bartender
Posts: 9429
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!