public void sampleMethod()
{
char ch[]={'B','E','A','S','T'};
_______ = __________;
System.out.println(s);
}
Complete the above blank in order to get the output as “BEAST”.
Answers
Answered by
2
public void sampleMethod()
{
char ch[]={'B','E','A','S','T'};
String s = new String(ch);
System.out.println(s);
}
Similar questions