Here you can find the source of bytesToAlphaNumeric(byte[] number)
Parameter | Description |
---|---|
number | ASCII value of alphabet letters A..Z or digits 0..9 |
static String bytesToAlphaNumeric(byte[] number)
//package com.java2s; //License from project: Apache License public class Main { /**/*from ww w. java 2s .co m*/ * Converts bytes representing the phone number alphanumeric value for digit and letters * @param number ASCII value of alphabet letters A..Z or digits 0..9 * @return String representing the phone number */ static String bytesToAlphaNumeric(byte[] number) { StringBuilder alphaNumeric = new StringBuilder(); for (short n : number) { alphaNumeric.append(Character.toChars(n)); } return alphaNumeric.toString(); } }