Take the 2-minute tour ×  i want the numbers to be displayed in
this format..  1 2 3 4 5 ^ where if i press 5, then it should
display from 5 to 10  5 6 7 8 9 10  till the max records are
available. i just want to know a how to do this for displaying
numbers.  share|improve this question What is your user
interface framework? If it's the console then it's not so simple
to do portable non-blocking I/O under Java. –  trojanfoe Apr 2
'11 at 7:27 i have implemented using Spring MVC, where if i
click on 1, it will display from 1 to 10 records. now the only
problem is displaying numbers that are meaningfull. currently i
have implemented showing numbers from 1 to 10 for 100 records.
but if records increase, then the displaying numbers too will
increase. so want to control this.. how do i do that? –  Raju
Apr 2 '11 at 7:36 i just want to know the logic of how this can
be done. or if anybody can show with simple example for this
calculation? –  Raju Apr 2 '11 at 7:49 add comment  4 Answers
up vote 4 down vote accepted