We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d335260 commit 1ee036eCopy full SHA for 1ee036e
Fibonacci.java
@@ -3,6 +3,11 @@
3
public class Fibonacci{
4
5
public static void main(String []args){
6
+ if (args.length != 1) {
7
+ System.out.println("USAGE: java Fibonacci <number>");
8
+
9
+ return;
10
+ }
11
int start = Integer.parseInt(args[0]);
12
BigInteger fib1 = new BigInteger("0");
13
BigInteger fib2 = new BigInteger("1");
0 commit comments