Here you can find the source of byteToInt(byte myByte)
Parameter | Description |
---|---|
myByte | byte to convert |
public static int byteToInt(byte myByte)
//package com.java2s; //License from project: Creative Commons License public class Main { /**//from www .ja v a 2 s .co m * Converts byte to integer value. * * @param myByte byte to convert * @return converted int */ public static int byteToInt(byte myByte) { return (int) myByte & 0xff; } }