Ai
1 Star 0 Fork 0

spring299792/JAVA学习

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
string.java 332 Bytes
一键复制 编辑 原始数据 按行查看 历史
spring299792 提交于 2020-03-05 16:54 +08:00 . 自带方法使用
public class string{
public static void main(String[] args) {
String s = "hello world";
System.out.println(s.substring(2));
System.out.println(s.substring(2,4));
StringBuffer buffer = new StringBuffer("This is a test string");
System.out.println(buffer.replace(0,1,"This is a"));
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/spring299792/java_study.git
git@gitee.com:spring299792/java_study.git
spring299792
java_study
JAVA学习
master

搜索帮助