I am attempting to pass as input to a java program via a command line argument an ArrayList of BigIntegers.
I understand calling a program as such:
java myProgram one two
args[0] = "one"
args[1] = "two"
But if I was to run the program as such
java myProgram arrayList
How would I convert the String[]
representation of this Arraylist back to an ArrayList<BigInteger>
The arrayList will be returned from a separate java file that returns an arrayList of BigInetegr, could I use that java program as an input to this one?
I am a little confused as how I would go about this.
Thanks!