GregBrannon: Ok, I'll take care.
Type: Posts; User: Sahil.Arora
GregBrannon: Ok, I'll take care.
Run the below code and it will print list on console.
GB: Code removed.
I think you are not providing "Run Time Arguement" that's why it gives ArrayIndexOutOfBoundException.