You can have a hexadecimal unsigned literal . . . but you can't parse a number outwith the range of an integer. The String "0xFF" is different; it is interpreted as > 127. An awkward thing, I am afraid. The one suggestion I can make is to parse it to a wider typeI think other people will have better ideas.
Thanks all, I figured it out shortly after the post. I can simulate 0xFF by using -0x01 (two's complement thank you very much), but that's not terriby intuitive, so I widened it out to a short and now it not only works, I have room to grow.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop