This is my code String sub= newString(ara,s,4);
Where s is an integer variable and ara is a character array.
This is my code String sub= newString(ara,s,4);
Where s is an integer variable and ara is a character array.
change String sub= new string(ara,s,4); to String sub= new String(ara,s,4);
String is a class and all classes start with capital letter.