get each char from message java code example Example: iterate over string java String str = "hello"; for (char c : str.toCharArray()) //process c