{{ message }}
-
Beta Was this translation helpful? Give feedback.
Answered by
JoisFe
Mar 7, 2023
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YuDeokRin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



자바의 Collection 타입 경우 구현체의 ArrayList와 같이 특정 인덱스에 접근할 수 있는 구현체도 있지만 그렇지 않은 경우도 있습니다.
이러한 경우 Iterator를 이용하거나 foreach를 활용하여 내부 값들을 조회해야 합니다.
다만 Iterator의 haNext와 next 이용해서도 모든 카드의 조합을 위 같은 에러가 발생하지 않고 작성할 수 있습니다.
하…