Copy some items of an array into another array
public class Main { public static void main(String[] args) { String[] letters = { "A", "I", "U", "E", "O" }; String[] results = new String[3]; System.arraycopy(letters, 2, results, 0, 3); for (int i = 0; i < results.length; i++) { System.out.println("result = " + results[i]); } } }