The Artima Developer Community
Sponsored Link

Java Answers Forum
array of bytes..

1 reply on 1 page. Most recent reply: May 7, 2002 6:07 AM by Kishori Sharan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

array of bytes.. Posted: May 6, 2002 11:26 PM
Reply to this message Reply
Advertisement
hi..

how can i convert string into array of bytes and vise versa

thanks.


Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: array of bytes.. Posted: May 7, 2002 6:07 AM
Reply to this message Reply
String str = "hello" ;
 
byte[] stringToByte = str.getBytes() ;
 
String stringAgain = new String ( stringToByte ) ;

Flat View: This topic has 1 reply on 1 page
Topic: IOException using runtime.exec Previous Topic   Next Topic Topic: steps to deploying Application in Weblogic 5.1

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use