Project/(공통)troubleshooting2023. 5. 28. 14:38[troubleShooting, JAVA] method replaceAll in class String cannot be applied to given types; return my_string.replaceAll(letter);

method replaceAll in class String cannot be applied to given types; return my_string.replaceAll(letter); 💡 JAVA에서 String의 replace, replaceAll 함수의 경우, 매개변수로 ([String] 탐색할 요소, [String] 치환할 요소)를 주어줘야 하는데, 치환할 요소를 주지 않았기 때문에 발생한 이슈 에러 코드 /Solution.java:3: error: method replaceAll in class String cannot be applied to given types; return my_string.replaceAll(letter); ^ required: String,String found: S..

image