main() threading process
I'm trying to do some simple checks in the main method. For example:
public static void main(String args[]) {
// First check
if (passed1) {
System.out.println("Passed 1");
}
// Second check
if (passed2) {
System.out.println("Passed 2");
}
}
Is there a way to make sure the first check is completed before executing the second check in the main() method?
Thanks.

