当前位置:网站首页>Idea fast coding skills

Idea fast coding skills

2020-12-06 19:12:46 uknow8692


boolean flag = true;

flag.if   //if Judge 

flag.else  //else Judge 

flag.while  //while loop 


int a = 1/0.try  // abnormal 


test5().var   // Defining variables 

private List<Integer> test5(){
    return new ArrayList<>();
}



List<String> list = new ArrayList<>();

list.fori  Positive sequence cycle 

list.forr  Reverse cycle 



String s = "zz";
s.null   // Judge empty 
s.nn     // Judgment is not empty 


User.new  // The new object 
 And then use var  Assignment object definition 


user.cast // Type conversion 

user.return  //return Returns the object 

 

1. Automatically remove the introduction of classes that are not used in the code .

stay IDEA in ,Setting ->Editor -> General -> Auto Import, Check the box in the red circle below 2 Check boxes , You can automatically remove the introduced classes that are not used in the code , Here's the picture :

 

版权声明
本文为[uknow8692]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/20201206190815554h.html