sunny123456

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
上一页 1 ··· 75 76 77 78 79 80 81 82 83 ··· 187 下一页

2022年11月2日

摘要: Java数组的三种初始化方式 //第一种 int[] is= new int[3]; is[0]=1; is[1]=2; is[2]=3; //第二种 int[] is2= {1,2,3}; //第三种 int[] is3= new int[]{1,2,3}; //我个人比较喜欢第三种方式,比较容易 阅读全文
posted @ 2022-11-02 12:46 sunny123456 阅读(988) 评论(0) 推荐(0)

摘要: java数组从小到大排序_排序算法--冒泡排序(Java语言) 方法一、 冒泡排序是一种简单的排序算法。它重复地走访过要排序的元素列,依次比较两个相邻的元素,如果他们的顺序(如从大到小、首字母从A到Z)错误就把他们交换过来。走访元素的工作是重复地进行直到没有相邻元素需要交换,也就是说该元素已经排序完 阅读全文
posted @ 2022-11-02 12:25 sunny123456 阅读(1382) 评论(0) 推荐(0)

2022年11月1日

摘要: IDEA通过git命令切换分支 git branch -a git checkout -b develop origin/develop 注意:如果 develop分支 不存在会创建分支 一.场景从github上拉取的代码,导入idea之后,想要切换到对应的分支,发现只有master分支,找不到想要 阅读全文
posted @ 2022-11-01 10:32 sunny123456 阅读(3881) 评论(0) 推荐(0)

摘要: 字符串方法 Java字符串方法 public String substring(int beginIndex, int endIndex) //从指定的 beginIndex 处开始,直到索引 endIndex - 1 处的字符。因此,该子字符串的长度为 endIndex-beginIndex。 / 阅读全文
posted @ 2022-11-01 10:26 sunny123456 阅读(55) 评论(0) 推荐(0)

摘要: git checkout命令详解 git checkout feature/test123 //切换到feature/test123分支 保证当前分支没有修改提交,否则回提示error: Your local changes to the following files would be overw 阅读全文
posted @ 2022-11-01 10:13 sunny123456 阅读(618) 评论(0) 推荐(0)

摘要: git提交指定文件 git add git commit git stash pop git提交指定文件,如果此时修改了其他代码,可先提交指定代码,然后忽略不想提交的代码,最后push之后,恢复之前忽略的代码 1 git status 查看仓库状态 2 git add src/components/ 阅读全文
posted @ 2022-11-01 09:02 sunny123456 阅读(349) 评论(0) 推荐(0)

2022年10月31日

摘要: git pull报错:There is no tracking information for the current branch 报错: There is no tracking information for the current branch. Please specify which b 阅读全文
posted @ 2022-10-31 18:23 sunny123456 阅读(485) 评论(0) 推荐(0)

摘要: git pull提示当前branch没有跟踪信息 There is no tracking information for the current branch 使用第二种方法,设置本地repository和远程repository关联 在执行git pull的时候,提示当前branch没有跟踪信息 阅读全文
posted @ 2022-10-31 18:21 sunny123456 阅读(387) 评论(0) 推荐(0)

2022年10月28日

摘要: 菜鸟教程 Git 基本教程 https://www.runoob.com/git/git-basic-operations.html 阅读全文
posted @ 2022-10-28 11:47 sunny123456 阅读(363) 评论(0) 推荐(0)

摘要: git提交指定文件 如果配合IDEA操作,改动文件自动add。 使用命令行 git status 查看仓库状态, git commit src/main/java/com/test01.java src/main/java/com/test01.java -m "commit注释" 即可保存到本地 阅读全文
posted @ 2022-10-28 11:45 sunny123456 阅读(251) 评论(0) 推荐(0)

上一页 1 ··· 75 76 77 78 79 80 81 82 83 ··· 187 下一页