title: (JAVA) how to use charAt() to find last digit number (or rightmost) of any real number?
body: <p>Hello Im new to programming
  and as title I was wonder how you can find last digit of any given number?
  for example when entering in 5.51123123 it will display 3
  All I know is I should use charAt 
  Should I use while loop?
  thanks in advance</p>