MCPcopy Index your code
hub / github.com/apache/groovy / main

Method main

benchmark/bench/ackermann.java:5–8  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

3
4public class ackermann {
5 public static void main(String[] args) {
6 int num = Integer.parseInt(args[0]);
7 System.out.println("Ack(3," + num + "): " + Ack(3, num));
8 }
9 public static int Ack(int m, int n) {
10 return (m == 0) ? (n + 1) : ((n == 0) ? Ack(m-1, 1) :
11 Ack(m-1, Ack(m, n - 1)));

Callers

nothing calls this directly

Calls 3

AckMethod · 0.95
parseIntMethod · 0.80
printlnMethod · 0.45

Tested by

no test coverage detected