Here you can find the source of toUnsignedInt(int value)
public static int toUnsignedInt(int value)
//package com.java2s; //License from project: Apache License public class Main { public static int toUnsignedInt(int value) { return value & 0xFF; }//from w ww . java 2 s . c o m }