public class DemowuApplication {
//这些也是从网上看的,做个记录
public static void main(String[] args) {
System.out.println("this is test maven");
boolean flag = false;
//自动 if
if (flag) { //flag.if
}
if (!flag) { //flag.e
}
//自动for循环
for (int i = 0; i < 10; i++) { //fori
}
//自动while循环
while (flag) {//flag.while
}
//var 自动补全变量声明
// String aa = new String();
HashMap hashMap = new HashMap();// new HahMap().var
//自动sout
System.out.println("hello");//"hello".sout
//自动 try catch
try {
int i =0; // int i=0;.try
} catch (Exception e) {
e.printStackTrace();
}
//list
ArrayList list = new ArrayList<>();// new ArrayList= 0; i--) {//list.forr
System.out.println(list.get(i));//list.get(i).sout
}
Iterator iterator = list.iterator();//list.iterator().var
while (iterator.hasNext()) { //iterator.hasNext().while
}
SpringApplication.run(DemowuApplication.class, args);
}
public int testRetur(){
//自动返回值
return 10; // 10.return;
// return 10;
}
}