+/EE379K
programming paradigms
git clone https://git.julia.blue/+/EE379K
1653c54
master
1public class Input { 2public static void main (String []args ) { 3Other obj =new Other (); 4System .out .println (Other .factorial (4 )); 5obj .method (); 6 } 7} 8 9class Other { 10static int factorial (int x ) {return x ==0 ?1 :x *factorial (x -1 ); } 11 12void method () {System .out .println ("called a method" ); } 13 14void uncalledMethod () {} 15}