I’m trying to figure out how I could use a java program to return the last 3 digits of an integer.
So for example if I had a number like 45678 how would I be able to return 678? Also how would I be able to determine that the length of this integer is 5 digits?
1 Answer