Java examples for java.lang:byte
byte To String via Integer.toString
//package com.java2s; public class Main { public static void main(String[] argv) throws Exception { byte b = 2; System.out.println(byteToString(b)); }/*from ww w.j av a 2 s. c o m*/ public static String byteToString(byte b) { return Integer.toString(b & 0xff); } }