+ 4

Can we call string an array of characters in java?

Java string handling

23rd Jul 2018, 7:02 AM
Aahnik Daw
Aahnik Daw - avatar
2 ответов
+ 2
Theorycally you can see in this way but practically its not true... You can edit an array item but not an string char (because strings are immutable). Futhermore String its an class that implement many methods useful to manipulate itself
23rd Jul 2018, 7:43 AM
KrOW
KrOW - avatar
0
It's called CharSequence sometimes. You can convert one into an array using theString.split("")
23rd Jul 2018, 7:30 AM
Jonas Schröter
Jonas Schröter - avatar