Java Byte to Int byte2int(byte b)

Here you can find the source of byte2int(byte b)

Description

byteint

License

Open Source License

Declaration

private static int byte2int(byte b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static int byte2int(byte b) {
        if (b >= 0)
            return b;
        return (256 + b);
    }/*from  w  w  w  .  j  av a2 s  .  c  o m*/
}

Related

  1. byte2int(byte b)
  2. Byte2Int(byte i)
  3. byte2int(final byte b)
  4. byte2integer(byte b)