5

Java program with return value, what is the best way?

view full story
linux-howto

https://bbs.archlinux.org – This should work, as long as intMain does not return before the program is actually done.You can explicitly make a thread wait for another one to complete, but I wont start explaining the whole java threading model here, there are very good tutorials online.public class A { public static int intMain(String... argv) { ///real program here } public static void main(String... argv) { final int code = intMain(argv); System.exit(code); } } Ramses de Norre https://bbs.archlinux.org/profile.php?id=10268 2012-05-10T09:42:17Z (HowTos)