코드가 하는 일을 읽고, 가려진 빈칸에 직접 이름을 지어 넣으세요. 빈칸 폭이 원본 이름의 글자 수입니다.
1public static void (File from, File to) throws IOException { 2 checkNotNull(from); 3 checkNotNull(to); 4 checkArgument(!from.equals(to), "Source %s and destination %s must be different", from, to); 5 6 if (!from.renameTo(to)) { 7 copy(from, to); 8 if (!from.delete()) { 9 if (!to.delete()) { 10 throw new IOException("Unable to delete " + to); 11 } 12 throw new IOException("Unable to delete " + from); 13 } 14 } 15}