|I have a Masters in computer science. I can answer questions on core J2SE, swing and graphics. Please no questions about JSP or J2ME.|
In the case you have, yes. int is a primitive and cannot be modified. For this reason, you can replace it in the array with another primitive. With class instances, it is possible to simply modify the
If the program is opening a second window, and doesn't have any commandline options to automatically continue, there isn't any good solutions. You could use the Robot class to manually type in the 'y'