we_like(:ruby).syntax
require "java"
import java.lang.System
puts System.getProperties["java.runtime.version"]
def fib(a:int)
if a < 2
a
else
fib(a - 1) + fib(a - 2)
end
end
public class fib extends java.lang.Object {
public static void main(java.lang.String[] argv) { }
public static int fib(int a) {
return (a < 2) ? a : (fib.fib((a - 1)) + fib.fib((a - 2)));
}
}