Meee De Lune wrote: . . . Is it possible to have two return values in a method?
No. You can however encapsulate several values in an object and return a reference to that object.
one is to terminate a program and the 2nd is to return a value?
A return value which terminates the program sounds like very poor design to me.
You can have a flag which keeps the program running, however. When you turn that
false, the
while loop terminates.