summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2011-04-10 22:42:06 +0400
committerIgor Pashev <pashev.igor@gmail.com>2011-04-10 22:42:06 +0400
commitf3cd688b810a13b23697761019aeb774c227c53c (patch)
treec6ccbb47b0aa9cd7965caf6c878c782352da5471
parent8d0f362d8098a7c7d93fe1087739a74754bebf4c (diff)
downloadgcd-f3cd688b810a13b23697761019aeb774c227c53c.tar.gz
Added synopsis: tested with GCJ and IcedTea6 javac
-rw-r--r--gcd.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcd.java b/gcd.java
index 092419a..abc505f 100644
--- a/gcd.java
+++ b/gcd.java
@@ -1,3 +1,14 @@
+/*
+ * SYNOPSIS:
+ *
+ * # gcj -o gcd --main=gcd gcd.java
+ * # ./gcd 11 22 33 44 121
+ *
+ * # javac gcd.java
+ * # java gcd 11 22 33
+ *
+ */
+
public class gcd
{
public static int gcd2(int a, int b) {