turn string array into string code example
Example 1: array to string java
char[] charArray = new char[] {'b','u','z','z'};
String answer = new String(charArray);
Example 2: turn array into string
const elements = ['Fire', 'Air', 'Water'];
console.log(elements.join());
// expected output: "Fire,Air,Water"
console.log(elements.join(''));
// expected output: "FireAirWater"
console.log(elements.join('-'));
// expected output: "Fire-Air-Water"