Please, before pitching this into the duplicate bucket, have mercy and help a Java 'newbie'...my code is:
//at top of class
List<String> faceStrList = new ArrayList<String>(cardsPerSuit);
Then, the line (in another method) that uses the offending other method:
faceStrList = readInfo( cardValueFileStr, faceStrList );
and the problem-child:
public static List readInfo( String inputFile, List<String> dataArrayOfStr )
{
String word = 'dummy';
dataArrayOfStr.add(word);
return dataArrayOfStr;
}
Again, please look kindly.