changed loop condition to sentinel value and run in BlueJ. seems to work ok. moving on to printing,,,