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.

[450 byte] By [allenvpn] at [2007-9-30 15:00:49]
# 1
the first check will always completed before second check...
Joey@_@ at 2007-7-5 21:33:40 > top of Java-index,Archived Forums,Java Programming...
# 2
What is passed1 and passed2? Do they kick off threads?
ChuckBing at 2007-7-5 21:33:40 > top of Java-index,Archived Forums,Java Programming...