title: pagination in java?
body: <p>i want the numbers to be displayed in this format..</p>
  
  <p>1 2 3 4 5 
          ^<br>
  where if i press 5, then it should display from 5 to 10</p>
  
  <p>5 6 7 8 9 10</p>
  
  <p>till the max records are available. i just want to know a how to do this for displaying numbers. </p>