package javaapplication1;
import java.io.IOException;
public class JavaApplication1 {
public static void main(String[] args) throws IOException {
char[] arr = {'a', 'b', 'c', 'd', 'e', 'f', 'g'};
String s = new String(arr, 0, 3);
System.out.println(s);
}
}
/*
run:
abc
*/