以下实例中我们通过字符串函数 substring() 函数来删除字符串中的一个字符,我们将功能封装在 removeCharAt 函数中。
实例代码如下:
以上代码实例输出结果为:
thi is Java