This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.

I have a some numbers, all of them ranging from 1-100. Is there a code to look at only the number in the one's place. like for the number 96; make it only look at the number six. like i want to make a variable equal to whatever number is in the one's place. if anyone knows how to do this it would be greatly appreciated.

Originally posted by Paul Hobson: I have a some numbers, all of them ranging from 1-100. Is there a code to look at only the number in the one's place. like for the number 96; make it only look at the number six. like i want to make a variable equal to whatever number is in the one's place. if anyone knows how to do this it would be greatly appreciated.

Looks like a home work! Here is a hint: Use Modulo Division