public class Input { public static void main(String[] args) { Other obj = new Other(); System.out.println(Other.factorial(4)); obj.method(); } } class Other { static int factorial(int x) { return x == 0 ? 1 : x * factorial(x - 1); } void method() { System.out.println("called a method"); } void uncalledMethod() {} }