Can method return a Vector or ArrayList

Hi,

I would like to model and generate a method that returns a vector of strings, that is public ArrayList myMethod() { … }. I found out that by changing the type modifier to [] my method generates with String[] but don’t know how to get it to return an ArrayList. I am using VP 6.4.

Many thanks!

Hi Stefda,

Thanks for your post. You just need to enter ArrayList for Return Type of the operation.

Best regards,
Lilian Wong

Thanks Lilian,

I actually realized that by myself only a moment after posting the topic. It is to note that you can enter both ArrayList and ArrayList where in the latter case, VP will correctly capitalize the first s of string when generating Java code.

Once again thanks for you reply and have a good day!

Hi Stefda,

You are welcome. Hope you have a nice day too!

Best regards,
Lilian Wong