// Suppress Eclipse compiler warnings about improper calls to static methods @SuppressWarnings("static-access") public class Static1 { public static void main(String[] args) { Static2 dave = new Static2(); // Proper way to call static method 'DoIt()' Static2.DoIt(); // Improper way to call static method 'DoIt()' dave.DoIt(); // Proper way to call non-static method 'DoIt(int num)' dave.DoIt(3); // Improper way to call static method 'DoIt(String word)' dave.DoIt("cat"); // Proper way to call static method 'DoIt(String word)' Static2.DoIt("dog"); // Proper way to call static method 'DoIt(int num1, int num2)' dave.DoIt(4, 7); } }