Class string_demo
{
Public static void main(string args[])
{
Char chars[]={'a','b','c'};
String s=new string(chars);
System.out.println(s);
}
}
Answers
Answered by
3
Answer:
The output would be: abc
also your code has a few syntax errors,,,, here is the corrected code:
class string_demo
{
public static void main(String args[])
{
char chars[]={'a','b','c'};
String s=new String(chars);
System.out.println(s);
}
}
Similar questions