iterate through the characters of a string in java

http‮.www//:s‬lautturi.com
iterate through the characters of a string in java
/**
 * @author lautturi.com 
 * Java example: traverse through the characters of a string in java
 */

import java.util.*;

public class Lautturi {
	public static void main(String[] args) {
		String str = "hello lautturi.com!";

		for (int i = 0; i < str.length(); i++){
		    char ch = str.charAt(i);        
		    System.out.print(ch+" ");
		}

	}
}
Created Time:2017-10-03 23:34:47  Author:lautturi