Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a tJavarow and immediately after that there is tMap
tJavarow has this code:
java.util.List<String> items = new java.util.ArrayList<String>(java.util.Arrays.asList(input_row.Address.split("\\|")));
output_row.add_list = items;
tMap has this code:
Var.address_cat == -1?row13.add_list.get(0).toString():row13.add_list.get(2).toString()
before adding toString I got cannot convert from object to string error.
My question is why I need to add toString, I've already defined List<String>?
Hi,
this is just a Java rules
List<String> is not equal to String
some examples:
https://www.geeksforgeeks.org/convert-list-of-characters-to-string-in-java/
Hi,
this is just a Java rules
List<String> is not equal to String
some examples:
https://www.geeksforgeeks.org/convert-list-of-characters-to-string-in-java/