Computer Science, asked by DiyaDENNY40, 7 months ago

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 bhoomidarak
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