I want to convert a character array to a string object using the toString() method in java. Here is a snippet of the test code I used:
import java.util.Array
char[] Array = { 'a', 'b', 'c', 'd', 'e', 'f' }; System.out.println(Array);
It should print abcdef.
abcdef