코드가 하는 일을 읽고, 가려진 빈칸에 직접 이름을 지어 넣으세요. 빈칸 폭이 원본 이름의 글자 수입니다.
1public static String (CharSequence a, CharSequence b) { 2 checkNotNull(a); 3 checkNotNull(b); 4 5 int maxSuffixLength = min(a.length(), b.length()); 6 int s = 0; 7 while (s < maxSuffixLength && a.charAt(a.length() - s - 1) == b.charAt(b.length() - s - 1)) { 8 s++; 9 } 10 if (validSurrogatePairAt(a, a.length() - s - 1) 11 || validSurrogatePairAt(b, b.length() - s - 1)) { 12 s--; 13 } 14 return a.subSequence(a.length() - s, a.length()).toString(); 15}