jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes how to convert Byte to the String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to convert Byte to the String" Watch "how to convert Byte to the String" New topic
Author

how to convert Byte to the String

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1073
how to convert Byte to the String
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40

aruna sameera wrote:how to convert Byte to the String


The Byte class has a toString() method.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

The String class also has a static valueOf method which takes a byte as parameter and converts it into a String


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
 
subject: how to convert Byte to the String
 
Similar Threads
byte array to string
Convert byte to its hex format?
how to convert byte [] to String?
How to convert binary octet string into byte array for writing into socket
how to convert byte array into short??