What will this code print?
val stack = Stack<String>()
stack.addAll(listOf("John", "Jane", "Mary", "Peter", "Paul", "George"))
println("${stack.peek()}, ${stack.size}")What will this code print?
val stack = Stack<String>()
stack.addAll(listOf("John", "Jane", "Mary", "Peter", "Paul", "George"))
println("${stack.peek()}, ${stack.size}")Create a free account to access the full topic