Two years ago, I volunteered to stand at the stand of our company JetBrains at the last JBreak conference in Novosibirsk. Before the conference, they sent me the following cards:
![](https://habrastorage.org/webt/rr/mk/mw/rrmkmwzk9rrtbdwuatfa_0jf3zm.jpeg)
And they said, well, give it to some people at the conference at your discretion. I panicked. How will I choose people?
IntelliJ IDEA Java. -, , IDE. -, -. IDEA , , , .
, . ( ). , IDEA, , . .
. , . , .
1
![](https://habrastorage.org/webt/dk/6i/jo/dk6ijofksaqttqist2dgwejqr2w.png)
. args
, parameters
. i == 0
, . , , .
2
![](https://habrastorage.org/webt/rz/dk/hd/rzdkhdsvgboh8ctoport-cji0nu.png)
. variants
. , . if (best == null || distance > d)
, best == null
. , best = variant
. variant
, , null
. , variant.distance
.
3
![](https://habrastorage.org/webt/fm/bt/l-/fmbtl-u0nliwbry5pusvoyecnro.png)
. value
null
, result
, . IDEA 2018.1 , . .
4 ?
![](https://habrastorage.org/webt/pr/bv/px/prbvpxjs79jmvtefcgnt1jn9xoi.png)
-, , IDEA . . , map
(, filter
), , findFirst
- orElse(null)
.
5
![](https://habrastorage.org/webt/f2/5f/st/f25fsttj7awztsfdiv6wprneugm.png)
name
, ?
. "may produce", "will produce" ( ). name
, init()
. this
. init()
, , . , . , init()
name
, name
, , , init()
null
.
6
![](https://habrastorage.org/webt/lk/s4/tz/lks4tzztpjl3rbz-74-rimzcqya.png)
7
![](https://habrastorage.org/webt/rt/zl/7r/rtzl7r6ck5dcr3duen-_jmutt8i.png)
. , indicator == 2
, riseBinding
, sinkBinding
null. , , IDEA , .
8
![](https://habrastorage.org/webt/ph/gy/im/phgyimxt1zp7glfon_b_td4o438.png)
. , exception[0]
. , . . , exception[0]
. , .
9 -
![](https://habrastorage.org/webt/ky/tg/vy/kytgvyigr7okjy-jiiy1v2b-9l8.png)
. : i < initializers.length
initializers.length < i
. . , , . , return
— if (parent instanceof GrTuple)
. .
10
![](https://habrastorage.org/webt/4n/v1/_g/4nv1_gqiogx_wdhexr3epzodrtg.png)
. filePrefix
linePrefix
. filePrefixes
linePrefixes
, . filePrefix
, linePrefix
. , , .
![](https://habrastorage.org/webt/de/cm/g_/decmg_pvveux9edoc7e5fbhsb1u.png)
, . ? 29 Java- SnowOne. JetBrains , . — JetBrains. !