work with every character in a string in java

work with every character in a string in java
refer to:‮ual‬tturi.com
/**
 * @author lautturi.com 
 * Java example: apply the for each loop to every char in java string
 */

import java.util.*;
import java.util.stream.IntStream;

public class Lautturi {
	public static void main(String[] args) {
		String str = "welcome to lauttur! java world!";
		for (char ch: str.toCharArray()) {
			System.out.print(ch+" ");
		}
	}
}

output:

w e l c o m e   t o   l a u t t u r !   j a v a   w o r l d !
Created Time:2017-10-06 15:21:53  Author:lautturi