title: Number between two hex numbers - Java
body: <p>I have two hex numbers say 'X' and 'Z'. I get a hex input from user say 'Y'.  Now i need to verify whether the value 'Y' lies between 'X' and 'Z'. <br>
  All the three numbers are in Hexa decimal. is there any simple logic to achieve this other than incrementing the values of 'X' till 'Z'?<br>
  Also please suggest me how we can achieve this in JAVA.</p>