20180910
類
1.自定義類(自定義存在不同的包下面)
2.第三方類(存在Mavendjar包里面)
3.JDK類(存在JDK的jar包里面屬于官方類)
方法
1.不帶參的 方法
2.帶參的方法
3.帶返回數(shù)據(jù)的方法
4.不帶返回數(shù)據(jù)的方法
四種類型
1.數(shù)字形:byte,short,int,long
2.浮點型:float,double
3.邏輯性:boolean(它只有兩個值可取,true,flase)
4.字符型:char
5.引用型:string
三種容器
1.數(shù)組:大小固定,只能存儲相同類型的數(shù)據(jù),通過下標取值
2.list:有順序,只能存單個,通過下標取值
3.map:只能存鍵值對,通過key取值
4.set:數(shù)據(jù)不能重復(fù),無序,通過循環(huán)迭代取值
引用類型
接口
數(shù)組
類
常用容器
1.list
2.hashmap
3.hashset
Test常見注解
Before test
Before class
Test
After class
After test
切換窗口
image.png
UI自動化流程圖
image.png