Integer: reverseBytes(int i) : Integer « java.lang « Java by API






Integer: reverseBytes(int i)

 

public class Main {
  public static void main(String args[]) {
      System.out.println(Integer.reverseBytes(10));
      System.out.println(Integer.reverseBytes(-10));
      System.out.println(Integer.reverseBytes(0));
  }
}

   
  








Related examples in the same category

1.Integer.MAX_VALUE
2.Integer: MIN_VALUE
3.Integer: Integer.SIZE
4.Integer: bitCount(int i)
5.Integer: equals(Object obj)
6.Integer: highestOneBit(int i)
7.Integer: intValue()
8.Integer: lowestOneBit(int i)
9.Integer: numberOfLeadingZeros(int i)
10.Integer: numberOfTrailingZeros(int i)
11.Integer: rotateLeft(int i, int distance)
12.Integer: signum(int i)
13.Integer: toBinaryString(int intValue)
14.Integer: toHexString(int intValue)
15.Integer: toOctalString(int intValue)
16.Integer: parseInt(String stringValue)
17.Integer: valueOf(String stringValue)