Java Integer to Byte intToByte(int myInt)

Here you can find the source of intToByte(int myInt)

Description

Converts integer to byte value.

License

Creative Commons License

Parameter

Parameter Description
myInt integer to convert

Return

converted byte

Declaration

public static byte intToByte(int myInt) 

Method Source Code

//package com.java2s;
//License from project: Creative Commons License 

public class Main {
    /**/*  w w w .j  a  v  a  2 s.c om*/
     * Converts integer to byte value.
     * 
     * @param myInt integer to convert
     * @return converted byte
     */
    public static byte intToByte(int myInt) {
        return (byte) (myInt & 0xff);
    }
}

Related

  1. intToByte(int i)
  2. IntToByte(int i)
  3. intToByte(int i)
  4. intToByte(int i)
  5. intToByte(int i_Value)
  6. intToByte(int num)
  7. intToByte(int number)
  8. intToByte(int number)
  9. intToByte(int number, int byteLength)