当前位置:网站首页>Idea common code templates

Idea common code templates

2022-06-21 08:34:00 Ah Jie who learns programming

【1】 Templates 1:main Method :main perhaps psvm

【2】 Templates 2:sout perhaps .sout

Some variants :

soutp: Formal parameters of the printing method

soutm: The name of the printing method

soutv: Print variables

【3】 Templates 3: loop

Ordinary for loop :fori( positive ) perhaps .fori( positive ) .forr( reverse )

Positive strength for loop :iter perhaps .for( Can be used for array traversal , Traversal of the set )

【4】 Templates 4: conditional

ifn perhaps .null: Judge whether it is null (if null)

inn perhaps .nn: Judgment does not equal null (if not null)

【5】 Templates 5: Property modifier

prsf:private static final

psf:public static final

原网站

版权声明
本文为[Ah Jie who learns programming]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202221453019365.html