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 charArray[] = { 'j', 'a', 'v', 'a', '2', 's', '.', 'c', 'o', 'm' };
        String s4 = new String(charArray, 6, 3);

        System.out.println(s4);
    }
}