package com.codecheck123.dumb_bdd;

import java.util.ArrayList;
import java.util.List;


public class Arguments {
	private final List<Arg> args;
	
	public Arguments(List<String> args){
		this.args = new ArrayList<Arg>(args.size());
		for(String arg : args){
			this.args.add(new Arg(arg));
		}
	}

	public Arg first() {
		return args.get(0);
	}
	
	public Arg second() {
		return args.get(1);
	}
	
	public Arg third() {
		return args.get(2);
	}
	
	public Arg fourth() {
		return args.get(3);
	}
	
	public Arg fith() {
		return args.get(4);
	}
}
@@ -141,23 +141,16 @@
 rgs;%0A%09%0A%09
-public 
 Argument
@@ -171,16 +171,85 @@
  args)%7B%0A
+%09%09if(args == null)%7B%0A%09%09%09this.args = new ArrayList%3CArg%3E(5);%0A%09%09%7Delse %7B%0A%09
 %09%09this.a
@@ -287,16 +287,17 @@
 ize());%0A
+%09
 %09%09for(St
@@ -314,16 +314,17 @@
  args)%7B%0A
+%09
 %09%09%09this.
@@ -347,16 +347,21 @@
 (arg));%0A
+%09%09%09%7D%0A
 %09%09%7D%0A%09%7D%0A%0A

handle Null args