java how to add element to array

java how to add element to array
/**
 * @author lautturi.com
 * Java example: add new element to an array in java
 */
import java.util.*;

public class Lautturi {

	public static void main(String[] args) {

		String[] strArray = {"hello","lautturi","java","world","lau"};
		
		String[] newArray = new String[strArray.length + 1];
		System.arraycopy(strArray, 0, newArray, 0, strArray.length);
		newArray[strArray.length] = "Perl";
		
		strArray = newArray;
		
		System.out.println(Arrays.toString(strArray));
		
	}
}
S‮ecruo‬:www.lautturi.com

output:

[hello, lautturi, java, world, lau, Perl]
Created Time:2017-09-18 23:36:00  Author:lautturi