import java.io.*;
import java.lang.String.*;
import java.lang.*;
//javac string_toString_valueof.java
class string_toString_valueof{
public static void main(String arguments[])throws IOException

{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
//needs throws IOException
System.out.print("Type some thing : ");
String str =br.readLine();
System.out.println("--c_space = words[i].toCharArray() displays words;--");
String[] words = str.split (" ");
int m1 = words.length;
int m4 = str.indexOf("");
System.out.println ("No of words are : " +m1);
char[] c_space = new char[m1];

for (int i =0; i <= m1-1; i++)
{
c_space = words[i].toCharArray();
System.out.print("char[] c_space is: ");
System.out.println(c_space);
//System.out.println(c_space.toString());
System.out.println ("\twords[i] in round: " + i + " " + words[i]);
System.out.println ("\tc_space.length :" + c_space.length);
String str_v = "";
str_v = str_v.valueOf(c_space);
System.out.println ("\tc_space.length :" + str_v+ " " + str_v.length());
}//end for loop

System.out.println ();

}
}

static String
valueOf(char[] data)
          Returns the string representation of the char array argument.