View Single Post
  #2 (permalink)  
Old 07-25-2007, 11:57 PM
Seemster Seemster is offline
Member
 
Join Date: Jul 2007
Posts: 55
Seemster is on a distinguished road
set the method as static. for example I have class MyClass with a method doSomething like this:

public class MyClass {
public static doSomething() {
System.out.println("hello");
}
}

I can call this from another class as such: MyClass.doSomething();
Reply With Quote