Online Java Compiler By
JavaTpoint.com
public class JavaByteToStringExample2 { public static void main(String[] args) { Byte byte1=110; //converting the byte value to long String str=byte1.toString(); //calling String class methods //passing the string str to StringBuilder StringBuilder sb=new StringBuilder(str); //reversing the string sb.reverse(); System.out.println("Reverse string : "+sb); } }
Output