// Construct one String from another.
class MakeString
{
public static void main(String args[])
{
char c[] = {'J', 'a', 'v', 'a'};
String str1 = new String(c);
String str2 = new String(str1);
System.out.println(str1);
System.out.println(str2);
}
}
Wednesday 4 January 2017
Powered by Blogger.
0 comments:
Post a Comment