Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calling another function from run function

800271Jun 7 2011 — edited Jun 12 2011
Dear All,

Below is my skeleton of multithread programme. I am now going to implelment a new function to do the processing rather then over crowding my run fuctnion. Where exactly must I define the myNewFunction in the same class as ConnectionHandler or create a new class? What would be right? I saw some place you need to put the word static what is it?
class ConnectionHandler implements Runnable {
     public void run() { 

      callMyNewFunction()
      
    }
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2011
Added on Jun 7 2011
12 comments
317 views