版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/nanruitao10/article/details/84966831
了解一些快捷键,会提高开发效率,祝你get到。
1.main方法
psvm:
2.输出
sout、souf、soutp、soutv对应不同的输出形式,还可输出err级别的(serr)来看一代码实例:
public void test(int threadNum){
System.err.println("");//serr
System.out.println();//sout
System.out.println("threadNum = [" + threadNum + "]");//soutp
System.out.println("threadNum = " + threadNum);//soutv
System.out.printf("");//souf
}
3.for循环
fori:
for (int i = 0; i < ; i++) {
}
itar:
for (int i = 0; i < array.length; i++) {
= array[i];
}
iter:
for (Object o : ) {
}
4.if
ifn:相等
if (threadNum == null) {
}
inn:不相等
if (threadNum != null) {
}
inst:判断是否是一个实例
if (threadNum instanceof Object) {
Object num = (Object) threadNum;
}
5.其他
prsf:
private static final
psf:
public static final
psfi:
public static final int
psfs:
public static final String
补充:
上述快捷键,你也可以自定义,如下图: