Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] arg) {
        char[] textArray = { 'j', 'a', 'v', 'a', '2', 's', '.', 'c', 'o', 'm', ' ', 'j', 'a', 'v', 'a', '2', 's',
                '.', 'c', 'o', 'm' };

        String text = String.copyValueOf(textArray, 9, 3);

        System.out.println(text);
    }

}