[Solved] Using string.replace() [closed]


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

solved Using string.replace() [closed]