Untitled
Posted on April 19, 2010, 10:08 am UTC anonymously (about 1 year ago)Code (highlighted for Java)
- public static int foo;
- int bla = FileIO.executeThreadTest();
- // Starts threadTest() with another Thread
- public static int executeThreadTest() {
- public void run() {
- foo = threadTest();
- }
- }).start();
- return foo;
- }
- private static int threadTest(){
- int returnValue = 111;
- return returnValue;
- }