I need to find out the last digit of the number ( int ) in JAVA .
For example, we have a number ( int ):
int count = 12345; int lastСharacter; I need the lastCharacter contain the last digit of the count . That is 5.
I need to find out the last digit of the number ( int ) in JAVA .
For example, we have a number ( int ):
int count = 12345; int lastСharacter; I need the lastCharacter contain the last digit of the count . That is 5.
Source: https://ru.stackoverflow.com/questions/804273/
All Articles