Java String Leading Character addLeadingZero(byte[] value)

Here you can find the source of addLeadingZero(byte[] value)

Description

add Leading Zero

License

Open Source License

Declaration

public static byte[] addLeadingZero(byte[] value) 

Method Source Code

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

public class Main {
    public static byte[] addLeadingZero(byte[] value) {
        byte[] result = new byte[value.length + 1];
        result[0] = 0;/*from   ww w.  ja v  a 2 s  .  co  m*/
        System.arraycopy(value, 0, result, 1, value.length);

        return result;
    }
}

Related

  1. addLeadingSlash(String path)
  2. addLeadingSlash(String string)
  3. addLeadingSpace(String s, int len)
  4. addLeadingSpace(String s, int len)
  5. addLeadingUnixSlash(String fileName)
  6. addLeadingZero(final int value)
  7. addLeadingZero(String aString, int aAmountOfZeros)
  8. addLeadingZeroesTo16BitBinaryString(String binaryValue)
  9. addLeadingZeros(Object number, int places)