Home arrow static arrow Java Programming [Archive] - main() threading process
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - main() threading process
This topic has 2 replies on 1 page.

Posts:116
Registered: 10/19/00
main() threading process  
Aug 9, 2004 8:02 PM



 
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.
 

Posts:964
Registered: 7/23/03
Re: main() threading process  
Aug 9, 2004 8:14 PM (reply 1 of 2)



 
the first check will always completed before second check...
 

Posts:10,967
Registered: 4/7/01
Re: main() threading process  
Aug 9, 2004 8:25 PM (reply 2 of 2)



 
What is passed1 and passed2? Do they kick off threads?
 
This topic has 2 replies on 1 page.