알고리즘

2차원 배열 복사

leeeehhjj 2022. 12. 16. 14:15
char[][] copy = new char[n][n];
for (int i = 0; i < n; i++) {
    copy[i] = map[i].clone();
}