The code below models simplified behavior of a message list. The adapter has reusable ViewHolders, and each row stores text for announcement and a delete-click handler.
You need to determine the exact stdout that the program prints with the current implementation.
ViewHolders is used.ViewHolder is rebound.ViewHolder calls announce() and clickRemove() without a new bind.Main.kt file.kotlinc Main.kt -include-runtime -d app.jar
java -jar app.jar
Main.ktClick a line and write what it prints. Explanation is optional.