<@U0BDMQTHS>: for example (the first that comes to...
# announcements
m
@mikehearn: for example (the first that comes to mind, so maybe not the best):
Copy code
var tail = head.get()
        while (true) {
            val next = tail.next
            if (next == null) {
                return tail
            }
            tail = next
        }

        //vs Java

        Node tail = head.get();
        while(tail.next != null) tail = tail.next;
        return tail;
I need to introduce an intermediate val for handling null issues, or use bunny ears