How to write this method called toInt()

Printable View