akashreuben7
6 years agoNew Contributor
String with two variables failing
I have two questions
1.
String asdf = ['B','S']
String qwer = ['B']
def result = getExpectedResult(asdf, qwer)
log.info result
Its failing
am expecting it takes something like getExpectedResult(['B','S'], ['B']). How to achieve
2.
am getting outputs from database like
[A,B]
[A]
[B,S,L,N]
[E]
[P]
and so on ...
All these results are generated in a loop.
How to achieve as
['A',B']
['A']
['B','S','L','N']
['E']
['P']