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) {
        char[] data = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' };

        String text = String.valueOf(data);
        System.out.println(text);

        text = String.copyValueOf(data, 3, 5);
        System.out.println(text);
    }
}