java split every character code example
Example 1: split a string every character
# Python3 - separate each character of non-spaced string
def split(string):
return [letter for letter in string]
# Driver code
string = 'split this string'
print(split(string))
Example 2: split every character in string into array java
String s="abcd";
char[] a=s.toCharArray();