Introduction
Here is the source code for MainClass.java
Source
public class MainClass {
public static void main(String[] arg) {
String text = "To be or not to be";
char[] textArray = new char[3];
text.getChars(9, 12, textArray, 0);
for (char ch : textArray) {
System.out.println(ch);
}
}
}