node和java

node-jvm 实现了纯 Node.js 环境下的 Java 虚拟机。 示例: java public class Main { public static long fib(int n) { if (n <= 1) return n; return fib(n-1) + fib(n-2); } public static void main(String[] args) { if (args.length == 0) { System.out.print("help: java Main.class {Number}"); return; } int N = Integer.parseInt(args[0]); long start = System.currentTimeMillis(); System.out.format("Fibonacci...

加载中
加载中

{{o.href}}

{{o.content | formatHtml}}

{{o.author.name}}
{{o.pubDate | formatDate}}
{{parseInt(o.viewCount) | bigNumberTransform}}

暂无相关内容

返回顶部
顶部