摘要: 添加以下参数 `-encoding utf-8 -charset utf-8` 阅读全文
posted @ 2023-05-19 16:03 HypoPine 阅读(19) 评论(0) 推荐(0) 编辑
摘要: dsf 阅读全文
posted @ 2023-04-13 17:08 HypoPine 阅读(72) 评论(0) 推荐(0) 编辑
摘要: Util类/工具类,Helper类/辅助类 Util类,一般是无状态的,只包含静态方法。使用时无需创建类的实例。 Helper类,可以有状态(类的成员变量),一般需要创建实例才能使用。 参考: https://zhuanlan.zhihu.com/p/352749160 https://www.cn 阅读全文
posted @ 2023-04-13 01:02 HypoPine 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 为什么设置 通过快捷键ctrl + /或ctrl + shift + /生成的注释左侧没有缩进(如下图),不与代码对齐 设置位置 在'Settings' > 'Editor' > 'Code Style' 中 'Java' > 'Code Generation' 下,Comment Code 区域中 阅读全文
posted @ 2023-03-30 20:01 HypoPine 阅读(1467) 评论(0) 推荐(0) 编辑
摘要: 情景复现 我是先创建一个空文件夹,然后进行仓库初始化。之后在添加新分支的时候报的这个错误 参考 https://www.cnblogs.com/fatfatdachao/p/5597028.html https://blog.csdn.net/Lakers2015/article/details/1 阅读全文
posted @ 2023-03-27 20:41 HypoPine 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Settings > Editor > Font > Fallback font - "SimHei" 阅读全文
posted @ 2023-03-23 18:14 HypoPine 阅读(205) 评论(0) 推荐(0) 编辑
摘要: windows 终端美化教程 一、更新自带的 PowerShell 打开 PowerShell,使用 $host 查看版本号 > $host 00:12:56 Name : ConsoleHost Version : 7.3.1 InstanceId : 3714e221-c908-4546-a49 阅读全文
posted @ 2023-02-07 00:53 HypoPine 阅读(393) 评论(0) 推荐(0) 编辑
摘要: public int getWordNum(String str) { int num = 0; boolean flag = false; for (int i = 0; i < str.length(); i++) { if (str.charAt(i) == ' ') { flag = fal 阅读全文
posted @ 2023-01-12 12:56 HypoPine 阅读(15) 评论(0) 推荐(0) 编辑
摘要: git config --global -l # 这两条不管用 git config --global --unset http.proxy git config --global --unset https.proxy 我的解决办法 查询 github IP地址,然后配置到 hosts 文件上即可 阅读全文
posted @ 2022-12-18 22:36 HypoPine 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 匿名类语法 匿名类是指没有类名的内部类,必须在创建时使用 new 语句来声明类。其语法形式如下: new <类或接口>() { // 类的主体 }; 注意:类不仅限于 抽象类 匿名类的使用 匿名 Map 的初始化 Map<String, Integer> map = new HashMap<>() 阅读全文
posted @ 2022-12-18 17:05 HypoPine 阅读(478) 评论(0) 推荐(0) 编辑