Convert byte to String in Java
Description
The following code shows how to convert byte to String.
Example
/* ww w . j ava2 s .c o m*/
public class Main {
public static void main(String[] arg) {
byte b = 12;
System.out.println(String.valueOf(b));
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »