Hi everyone,
I have a javascript, jQuery, and c++ background so im not completely new but am just starting to learn Java in a University setting.
In our first program we are to run it within a Do...While loop so the user can click a JButton for yes or no, if they wish to run it again. It's a simple Prime Factorization program. I missed a day this week and think I missed the instruction I am missing for this loop to work. From what I have been reading for the last few hours is that I need to have an event handler to catch the click and feed that to the while condition. I can't find one single example of a do...while loop within java that works off of a user click. Can someone give me an example of what the actionPerformed should pass to the while condition to loop back through the program or point me to a link that has an example? The rest of the program will be easy to write, but this simple thing has me stumped. Seems like an awful lot of work to make a simple do while loop, so I must be missing something.
Thanks,
Curtis