Skip to content

Instantly share code, notes, and snippets.

View halilozel1903's full-sized avatar
πŸ¦…
The rest of the world was black and white πŸ–€ 🀍

Halil Γ–zel halilozel1903

πŸ¦…
The rest of the world was black and white πŸ–€ 🀍
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:argType="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<com.google.android.exoplayer2.ui.StyledPlayerView
android:id="@+id/playerView"
implementation 'com.google.android.exoplayer:exoplayer:2.18.0'
val mapTwo = hashMapOf<Double, Boolean>(19.93 to true, 19.97 to false, 19.95 to true)
val mapFour = hashMapOf<String, Boolean>()
println(mapTwo.contains(19.95))
println(mapFour.contains("Halil"))
val mapTwo = hashMapOf<Double, Boolean>(19.93 to true, 19.97 to false, 19.95 to true)
val mapFour = hashMapOf<String, Boolean>()
println(mapTwo.isEmpty())
println(mapFour.isEmpty())
val mapFour = hashMapOf<String, Boolean>("19.93" to true, "19.97" to false)
mapFour.clear()
println(mapFour)
val mapTwo = hashMapOf<Double, Boolean>(19.93 to true, 19.97 to false, 19.95 to true)
val mapThree = hashMapOf<Double, Boolean>(19.93 to true, 19.97 to false, 19.95 to true)
val mapFour = hashMapOf<String, Boolean>("19.93" to true, "19.97" to false)
println(mapTwo.equals(mapThree))
println(mapTwo.equals(mapFour))
val mapTwo = hashMapOf<Double,Boolean>(19.93 to true, 19.97 to false, 19.95 to true)
println(mapTwo.size)
val mapTwo = hashMapOf<Double,Boolean>(19.93 to true, 19.97 to false, 19.95 to true)
mapTwo.remove(19.93)
println(mapTwo)
val mapOne = mapOf<Int, String>(7 to "Ricardo Quaresma", 34 to "Hugo Almeida", 31 to "Simao Sabrosa")
println("map-1: ${mapOne[34]}")
val mapOne = mapOf<Int, String>(7 to "Ricardo Quaresma", 34 to "Hugo Almeida", 31 to "Simao Sabrosa")
println("map-1: ${mapOne.get(7)}")