0 votes
in JAVA by
Out of these methods, which one can be used for converting all the characters present in a String into an Array of characters?

1) both getChars() & toCharArray()

2) both charAt() & getChars()

3) charAt()

4) all of the mentioned

1 Answer

0 votes
by

1) both getChars() & toCharArray()

Related questions

0 votes
asked Aug 21, 2022 in JAVA by sharadyadav1986
0 votes
asked May 2, 2021 in JAVA by sharadyadav1986
...