Hello,
I am writing a
Java standalone program. I want this program return a value (0 or 1) so that I can use this value in a batch file to identify if the program completed ok or not. When I returned a value from the program I got an error message saying that main should be defined as void.
Can you please tell me how I can return a value from a Java program?
Thanks
Suresh