So I was initially using a singleton list to pass data to Google Cloud API like this:
inputInput.setCsvInstance(Collections.<Object>singletonList("Ear"));
How can I change the singletonList
to send multiple objects like this:
inputInput.setCsvInstance(Collections.<Object>singletonList("5.656346", "2.43485744", ...));
EDIT: I don't want to keep a singleton. I need to change it to multiple one, singleton doesn't allow me that. What keyword should I use instead of singleton is my question.
Thanks.