publicclass JAVA_055
{
publicstaticvoid main(String[] args)
{
char[] cArray={'T','o',' ','b','e',' ','o','r',' ','n','o','t',
' ','t','o',' ','b','e'};
String Str1=String.copyValueOf(cArray);
String Str2=String.copyValueOf(cArray,9,6);
System.out.println("The character Array is : ");
for(int i=0;i<cArray.length;i++)
System.out.println(cArray[i]);
System.out.println("\nThe String-1 is : " + Str1);
System.out.println("The String-2 is : " + Str2);
}
}