iterate through string code example
Example 1: iterate over string java
String str = "hello";
for (char c : str.toCharArray())
//process c
Example 2: python iterate over string
word = "test"
for letter in word:
print(letter)
String str = "hello";
for (char c : str.toCharArray())
//process c
word = "test"
for letter in word:
print(letter)