본문 바로가기
Beakjoon&프로그래머스/Java

[프로그래머스/Java] n 번째 원소부터

by 현장 2025. 2. 11.

-Code

import java.util.Arrays;

class Solution {
    public int[] solution(int[] num_list, int n) {
        return Arrays.copyOfRange(num_list, n - 1, num_list.length);
    }
}