title: How to display the middle digit in java
body: <p>I am trying to get java to display the middle digit of a 1-4 digit integer, and if the integer has an even number of digits i would get it to display that there is no middle digit.</p>
  
  <p>I can get the program to take get the integer from the user but am pretty clueless as how to get it to pick out the middle digit or differentiate between different lengths of integer.</p>
  
  <p>thanks</p>