Skip to content
Advertisement

Tag: apex

How to return a list of strings in Java?

I want to return a list of strings when I call the method generateArrayList(2); It reminds me “Method does not exist or incorrect signature: void generateArrayList(Integer) from the type anon” Anyone help me, please! here is my class: Answer You have few compile time errors which needs to be corrected before it can work correctly. integer: It will either be

Advertisement