I'm doing two distinct searches on the database that will return various data that will be inserted into a list.
I need to create a single list with this data.
And the searches should concatenate with each other. The first position in the list list [0] will save the first search in the bank. Then I have to do another search on the bank that will return to the same list only that will be included at the end of each position in the list.
For example
the first search returned code, name, age
will be inserted in the list (code, name, age) at position 0
the second search returned surname, weight, height
will be inserted in the same list (code, name, age, surname, weight, height)
The language is java, an operation is being done to get the bank's data for account creation in google. I can not show the tables because they are company
Is there any way to do this?