kotlin queue
import java.util.LinkedList
fun main() {
val queueA = LinkedList<Int>()
queueA.add(1)
queueA.add(2)
print(queueA.poll())
}
kotlin queue
import java.util.LinkedList
fun main() {
val queueA = LinkedList<Int>()
queueA.add(1)
queueA.add(2)
print(queueA.poll())
}
kotlin queue
val studentQueue: Queue<String> = LinkedList<String>(mutableListOf("Agni", "Bob", "Chris", "David", "Emily"))
println(studentQueue)
studentQueue.add("Felix")
println(studentQueue)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us