Here you can find the source of unsignedValue(byte signedByte)
public static int unsignedValue(byte signedByte)
//package com.java2s; //License from project: Apache License public class Main { public static int unsignedValue(byte signedByte) { return signedByte & 0xff; }/*from w w w .j a va 2 s.c o m*/ }