Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to convert Byte to the String  RSS feed

 
sam liya
Ranch Hand
Posts: 1259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to convert Byte to the String
 
Henry Wong
author
Sheriff
Posts: 23260
124
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aruna sameera wrote:how to convert Byte to the String


The Byte class has a toString() method.

Henry
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The String class also has a static valueOf method which takes a byte as parameter and converts it into a String
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!