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
Social Sciences,
2 months ago
English,
2 months ago
Math,
4 months ago
Math,
10 months ago
World Languages,
10 months ago