I have objects that look like this:
{id:1,name:john,age:15},{id:2,name:david,age:40}....
And I want to pass them to my java program as arguments and keep the connection between them.
If I could do something like that:
public static void main(Object[] args){
}
It could solve my problem but I can't so I thought about this solution:
Argument one:"1,2"
Argument two:"john,david"
Argument three:"15,40"
Then, split each Arg by ','
And keep the relationship between them by the place in the array
I don't like this solution.
Do you know better solution for this problem?