View Single Post
  #13 (permalink)  
Old 07-02-2009, 02:09 AM
fullmetaljacket fullmetaljacket is offline
Member
 
Join Date: Mar 2009
Posts: 61
Rep Power: 0
fullmetaljacket is on a distinguished road
Default
Originally Posted by JohnnyR View Post
Take a look here for more info on toCharArray()
String (Java Platform SE 6)

Your code is going to basically be the same.
Code:
public myString(String args)
{
   this.test = args.toCharArray();
}
Also your input statement was a String array, from your last post it should just be String.
JonnyR! Thanks for the info mate. It seems to be able to compile now.

I know know how to use the toCharArray() method!

All the best,

FMJ.
Reply With Quote