나는 문자열 str
첫 번째 (char c1, char c2)를 바꾸는 방법은 무엇입니까?
내가 문자 b
와 str
의 첫 번째 문자 'X'를 대체 할에게 있습니다. replaceFirst
등이
str.replaceFirst("a","b");
같은
The method replaceFirst(String, String) in the type String is not applicable for the arguments (char, char)
에 대한
출력 그냥'replaceFirst라고 ("X", "B")를 사용하는' –