ך㜥さ 1: val list = listOf(-3, -2, -1, 0, 1, 2, 3) 2: 3: // 1, 2, 3 4: val positiveNumbers = list.filter { it > 0 } ⻎坎מ Java ך銨槁כ♧┫סֹמםױն Ӟٔأز 1.4 Java ך㜥さ 1: List<int> list = Arrays.asList(-3, -2, -1, 0, 1, 2, 3); 2: 3: // 1, 2, 3 4: List<int> positiveNumbers = list.stream() 5: .filter(o -> o > 0) 6: .collect( Collectors.toList() ); ׆הע Stream Api ❈氠יַג״յStream Api 勑❈氠סؤ٭غכ嬟 ידַש焝ׂםזיַױֿյאך Kotlin מ嬟ף倀㲻俙鉿俙㝂ׂ םזיַױն杅מ倀㲻俙⽿צ⮂ْخشغס俙ֿ㸴םַכ IDE ך鎢㴞 亣✑ֿ㸴םׂםױյⷃ筙מ䩘ⳛ־Ⲩⲇֿ㸴םׂםסך祔愃ךֵ׆ כסْٛشعע긊䊬מ㝕׀ַסֵֿױն ءؚٕٝزٝ Kotlin ךب٤ءٜع٤قذ٭٤㵅鍮㖪⻉ע♧┫סꄼךն Ӟٔأز 1.5 Kotlin ך㜥さ 1: object ThisIsASingleton { 2: val companyName: String = "JetBrains" 3: } Java ךע♧┫סֹמםױն Ӟٔأز 1.6 Java ך㜥さ 1: public class ThisIsASingleton { 2: private static ThisIsASingleton thisIsASingleton; 3: public String companyName = "JetBrains"; 4: 5: private ThisIsASingleton() { 11