xxxxxxxxxx
TLDR;
readln() // Standard way
readLine() // Depreacated
Detail:-
Basically the kotlin devs wanted readLine to return a non-null String now
instead of String?, but changing it now isn't backwards compatible.
So they added a new function readln instead and deprecated readLine