随笔分类 -  java

摘要:一、安装 1、运行安装程序,直接使用默认选项安装 2、注意安装路径中不能带中文,否则会git bash失败(如果失败,建议卸载重装) 3、配置两个环境变量 一个是git/cmd 一个是git/bin 二、命令 1、git clone 带用户名和密码 git clone https://usernam 阅读全文
posted @ 2025-04-09 17:54 hushuer
摘要:1 public class hello { 2 public static void main(String [] args){ 3 int[] lista={12,3,2,1,34,21,23}; 4 int lentha=lista.length; 5 System.out.println(l 阅读全文
posted @ 2025-03-08 10:31 hushuer
摘要:需要添加到library 右键点击jar包,然后添加到library 阅读全文
posted @ 2025-03-01 14:13 hushuer
摘要:以编写UI自动化的代码举例://定位手机号码输入框 private String phoneInput = "//input[@placeholder=\"手机号码\"]"; 这样写会编译报错,缺少; 修改为: private String phoneInput = "//input[@placeh 阅读全文
posted @ 2022-02-11 14:30 hushuer
摘要:安装2019.1版本 下载jar包:jetbrains-agent.jar(百度网盘-安装软件-java相关)(没有的请自行百度下载) 进入idea后,点击Idea最上面的菜单栏中的 “Help” -> “Edit Custom VM Options …”,如果提示是否要创建文件,请点”Yes”. 阅读全文
posted @ 2020-06-02 16:07 hushuer
摘要:最新在学习java:for循环、while循环、do...while循环结构,尝试用星号做三角形,如下图: * * * * * * * * * * * * * * * * 一、百度到的都是用嵌套型的for循环语句,个人觉得很有意思,练习如下: 运行结果: 二、自己尝试的方法,用while循环来做: 阅读全文
posted @ 2018-03-24 15:00 hushuer