The Android Playground


Kanal geosi va tili: O‘zbekiston, O‘zbekcha


Похожие каналы

Kanal geosi va tili
O‘zbekiston, O‘zbekcha
Statistika
Postlar filtri


Which function is used to check a spesific value's existence in the elements of a list or an array?
So‘rovnoma
  •   any()
  •   filter()
  •   map()
  •   shuffle()
4 ta ovoz


- What is the difference between:

reverse()
reversed()
reversedArray()

· Well when we think about like what was the purpose of this thing , to create same methods which will do the same this thi really makes a sense but these functions in kotlin not will do same thing actually each of those have their own specific job

reverse() - this method turns array/collections element into reverse like this:
[1,2,3,4,5] -> [5,4,3,2,1] but you cannot absorb it to another value like this:

var c = myArray.reverse() // c is now Unit not array which gives us nothing

And that's why we got a reversed() and reversedArray() methods which will helps us to get a reversed value from a List or Array and it will not effects for the original array like this:

var myArray: Array = arrayOf(1, 2, 3, 4, 5) // org array
var c = myArray.reversed() // List = [5,4,3,2,1]
var d = myArray.reversedArray() // Array = [5,4,3,2,1]

And those methods doesn't effects for the original array


🤔 But How it actually works ?


1) First of all let's look at the code that was given to us:

var myArray:Array = arrayOf(1,2,3,4,null)

In this code when you give your attention to the " ? " it means that the elements of this Type of variable can be null like this

var myNumber:Int? = null // works
var myNumber2:Int = null // this will give us error

With that thing we're telling to our type that that: my element can be null at somewhere and you have to work even though it has a null value and it works properly without any problems and exceptions

2) And now when if we do like this in our code

var a = myArray.map { it * 2 }

This code won't work because of myArray can have a null value which we talked at first.

And that's why it can't multiply ( a null for * 2) and for fixing that problem we use if the elements has no any null value like this

filterNotNull()

This method tells that : when it has a null value then give me each one of their multiplication but except null elements and it works .


var a : Array = arrayOf ( 1 , 2 , 3 , 4 , null ) var b = a.map { it * 2 }
So‘rovnoma
  •   [ 1 , 2 , 3 , 4 , null ]
  •   [ 2 , 4 , 6 , 8 , null ]
  •   There will be error in the code
  •   [ null ]
2 ta ovoz


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : Tecno Pova 3
💾 Hotira : 128 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Bor
💰 Narx : 1.100.000 - So'm
🔄 Obmen : Yo'q
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon shahar

☎️ Telefon raqami va Telegram :
+998 yoki @Polatoff094

🚫 To'lov
ol
dindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!

🇺🇿 Andij
on telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : Redmi Note 11S
💾 Hotira : 64 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Bor
💰 Narx : 1.150.000 - So'm
🔄 Obmen : Yo'q
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon shahar

☎️ Telefon raqami va Telegram :
+998 yoki @Polatoff094

🚫 To'lov
ol
dindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!

🇺🇿 Andij
on telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : Itel A70
💾 Hotira : 256 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Bor
💰 Narx : 1.500.000 - So'm
🔄 Obmen : Bor
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon , Izboskan

☎️ Telefon raqami va Telegram :
+998948727237 yoki @Mashrabjon_2211

🚫 To'lov oldi
nd
an qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!

🇺🇿 Andijon t
elefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : iPhone X
💾 Hotira : 64 - GB
🔋 Batareyka : 71 - %
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Yo'q
💰 Narx : 1.250.000 - So'm
🔄 Obmen : Bor
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon

☎️ Telefon raqami va Telegram :
+998934496484 yoki @

🚫 To'lov oldindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!


🇺🇿 Andijon telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : Samsung A70
💾 Hotira : 128 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Yo'q
💰 Narx : 1.500.000 - So'm
🔄 Obmen : Yo'q
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon Shahar

☎️ Telefon raqami va Telegram :
+998947844647 yoki @davdr13

🚫 To'
lo
v oldindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!

🇺🇿 A
ndijon telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : iPhone 11
💾 Hotira : 64 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Yo'q
💰 Narx : 3.000.000 - So'm
🔄 Obmen : Yo'q
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon

☎️ Telefon raqami va Telegram :
+998905250100 yoki @eskiya0100

🚫 To'lov
o
ldindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!

🇺🇿 Andi
jon telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : Infinix Hot 30i
💾 Hotira : 128 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Yo'q
💰 Narx : 750.000 - So'm
🔄 Obmen : Bor
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon , Baliqchi

☎️ Telefon raqami va Telegram :
+998 yoki @Withsacuryx

🚫 To'lov
ol
dindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!

🇺🇿 Andij
on telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : Redmi Note 9 Pro
💾 Hotira : 64 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Yo'q
💰 Narx : 1.100.000 - So'm
🔄 Obmen : Yo'q
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon Shahar

☎️ Telefon raqami va Telegram :
+998937800406 yoki @

🚫 To'lov oldindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!


🇺🇿 Andijon telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : Xonor
💾 Hotira : 128 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Bor
💰 Narx : 1.650.000 - So'm
🔄 Obmen : Bor
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon , Marhamat

☎️ Telefon raqami va Telegram :
+998501037389 yoki @

🚫 To'lov oldindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!


🇺🇿 Andijon telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : Samsung A11
💾 Hotira : 32 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Yo'q
💰 Narx : 380.000 - So'm
🔄 Obmen : Yo'q
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon

☎️ Telefon raqami va Telegram :
+998505007027 yoki @

🚫 To'lov oldindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!


🇺🇿 Andijon telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : Redmi K30 Ultra
💾 Hotira : 128 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Yo'q
💰 Narx : 1.845.000 - So'm
🔄 Obmen : Yo'q
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon shahar

☎️ Telefon raqami va Telegram :
+998991177899 yoki @

🚫 To'lov oldindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!


🇺🇿 Andijon telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : iPhone 11
💾 Hotira : 64 - GB
🔋 Batareyka : 72 - %
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Yo'q
💰 Narx : 2.650.000 - So'm
🔄 Obmen : Yo'q
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon

☎️ Telefon raqami va Telegram :
+998932537393 yoki @Fazliddinov003

🚫 To'lov old
in
dan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!

🇺🇿 Andijon
telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : iPhone 7
💾 Hotira : 128 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Yo'q
💰 Narx : 900.000 - So'm
🔄 Obmen :  Bor
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon

☎️ Telefon raqami va Telegram :
+998 yoki @m_aziz_013

🚫 To'lov
o
ldindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!

🇺🇿 Andi
jon telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6


Telefon zudlik bilan Sotiladi

📱 Telefon rusum : iPhone
💾 Hotira : 128 - GB
🔋 Batareyka : Yaxshi
🪪 Imeyka : Qilingan
🏦 Kreditga olinganmi : Yo'q
📦 Dokument : Bor
💰 Narx : 700.000 - So'm
🔄 Obmen :  Bor
🧩 Variantga bormi : Yo'q
📮 Manzil : Andijon

☎️ Telefon raqami va Telegram :
+998937833107 yoki @

🚫 To'lov oldindan qilinmasin , o'zinggiz ko'zinggiz bilan ko'rmaguncha oldindan to'lovni amalga oshirmang!


🇺🇿 Andijon telefon bozori👇
↪️ t.me/+ykhZjdOEJ_hlZDc6



19 ta oxirgi post ko‘rsatilgan.