Thanks avi for spending ur valuable time in teaching me the basics of java. stupid of me wat happened is i didnt give a number and pressed enter button.
actually i have changed the code wat Blake has pointed out. but i cut and pasted the pre version. but even then its going as an infinite loop
(code tags added by Marilyn)
[ January 01, 2003: Message edited by: Marilyn de Queiroz ]