Convert char array to string in java

https‮www//:‬.lautturi.com
Convert char array to string in java
/**
 * @author lautturi.com
 * Java example: java converting a char array to string
 */

import java.util.*;

public class Lautturi {

	public static void main(String[] args) {

		char[] arr = { 'h', 'e', 'l', 'l', 'o', ' ', 'l', 'a', 'u', 't', 't', 'u', 'r', 'i', '.', 'c', 'o', 'm' };
		String str = String.valueOf(arr);
		System.out.println(str);

	}
}

output:

hello lautturi.com
Created Time:2017-09-05 21:18:30  Author:lautturi