[ad_1]
Do not specify the class String before your string literal.
filename.replace("*", wildcard)
And nextLine() is an existing method in the Scanner class. scannextLine() isn’t.
String wildcard = scan.nextLine();
4
[ad_2]
solved Using string.replace() [closed]