LastDigit

Given two non-negative int values, return true if they have the same last digit, such as with 27 and 57. Note that the % "mod" operator computes remainders, so 17 % 10 is 7.

Este exercício foi convertido para o PLM do excelente sítio de exercícios http://javabat.com/