class MString { char[] string; public MString(char[] str) { this.string = str; } public void print() { for (int i=0; i