You Cannot Return a List of Strings - Void method must not return a value. Please help!
By stating the method must have a return type, you have declared that your return type as void. Change it to List. Incorrect public static void generateStringArrayCorrect public static List generateStringArrayIt would be worth your time to read up on Class Methods:To define a method, specify the following:
Answered Aug 16, 2021 · 1.9K Views Read answer →