This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implementation 'com.google.android.exoplayer:exoplayer:2.18.0' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val mapFour = hashMapOf<String, Boolean>("19.93" to true, "19.97" to false) | |
mapFour.clear() | |
println(mapFour) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val mapTwo = hashMapOf<Double,Boolean>(19.93 to true, 19.97 to false, 19.95 to true) | |
println(mapTwo.size) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val mapTwo = hashMapOf<Double,Boolean>(19.93 to true, 19.97 to false, 19.95 to true) | |
mapTwo.remove(19.93) | |
println(mapTwo) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val mapOne = mapOf<Int, String>(7 to "Ricardo Quaresma", 34 to "Hugo Almeida", 31 to "Simao Sabrosa") | |
println("map-1: ${mapOne[34]}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val mapOne = mapOf<Int, String>(7 to "Ricardo Quaresma", 34 to "Hugo Almeida", 31 to "Simao Sabrosa") | |
println("map-1: ${mapOne.get(7)}") |