This is a follow up question. So, Java store\'s integers in two\'s-complements and you can do the following:
int ALPHA_MASK = 0xff000000;
I
Well, you can use an unchecked block and a cast:
unchecked { int ALPHA_MASK = (int)0xff000000; }
or
int ALPHA_MASK = unchecked((int)0xff000000);
Not terribly convenient, though... perhaps just use a literal integer?