Computer Science, asked by Ksh22, 4 months ago

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 jai696
2

\large\mathsf\color{pink}{Solution\: using\: Java}

public void sampleMethod()

{

char ch[]={'B','E','A','S','T'};

String s = new String(ch);

System.out.println(s);

}

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions