mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
29 lines
465 B
Kotlin
Vendored
29 lines
465 B
Kotlin
Vendored
import java.util.*
|
|
fun foo() {
|
|
val al = ArrayList<String>()
|
|
al.size
|
|
al.<!DEPRECATION!>contains<!>(1)
|
|
al.contains("")
|
|
|
|
al.remove("")
|
|
al.removeAt(1)
|
|
|
|
val hs = HashSet<String>()
|
|
hs.size
|
|
hs.<!DEPRECATION!>contains<!>(1)
|
|
hs.contains("")
|
|
|
|
hs.remove("")
|
|
|
|
|
|
val hm = HashMap<String, Int>()
|
|
hm.size
|
|
hm.<!DEPRECATION!>containsKey<!>(1)
|
|
hm.containsKey("")
|
|
|
|
<!DEPRECATION!>hm[1]<!>
|
|
hm[""]
|
|
|
|
hm.remove("")
|
|
}
|