Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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]);
        }
    }
}