+/EE379K

programming paradigms

git clone https://git.julia.blue/+/EE379K

Joseph RyanClean up buildscripts and test1653c54

master
364 B15 linesraw
1public class Input {
2    public static void main(String[] args) {
3        Other obj = new Other();
4        System.out.println(Other.factorial(4));
5        obj.method();
6    }
7}
8
9class Other {
10    static int factorial(int x) { return x == 0 ? 1 : x * factorial(x - 1); }
11
12    void method() { System.out.println("called a method"); }
13
14    void uncalledMethod() {}
15}