Saturday, 15 June 2013

Use of java string function toCharArray

import java.io.*;

public class CharArray
{
   public static void main(String args[])
       {
      String Str = new String("Welcome to Java Programming");

      System.out.print("Return Value :" );
      System.out.println(Str.toCharArray());
   }
}

No comments: