java
yill_h
随心 随行 随性
展开
-
Java替换多个字符串
在调用GitLabApi的时候需要拿到分支的地址作为参数。git仓库通常是有两种方式一种是HTTP的路径,另一种是SSH的路径。怎样将两种不同的路径解析出来得到我们的分支路径。http //gitlab.xxx.com/xxx_test_tool/autotest.gitgit@gitlab.xxx.com:xxx_test_tool/autotest.git其...原创 2020-04-22 21:28:44 · 4500 阅读 · 0 评论 -
java里用==比较string和用equals方法比较string
String:代码如下:public static void main(String[] args) {String str1="abc";String str2="abc"; String str3=new String("abc");String str4=new String("abc"); System.out.println(str1==str原创 2015-08-14 17:19:39 · 534 阅读 · 0 评论