Monday, March 9, 2015

Convert Byte object to String object in java



Convert Byte object to String object

public class ByteToStringExample
{
public static void main(String[] args)
{
Byte bObj = new Byte("10");
String str = bObj.toString();
System.out.println("Byte converted to String as " + str);
    }
}

No comments:

Post a Comment