You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
관련 이슈
#39
ArrayList의 비검사 형변환
ArrayList는 다음과 같이 비검사 형변환을 진행합니다.
ArrayList
코드에서 보면 알 수 있듯이 요소를 뽑을 때마다 형변환을 하는 책에서 언급한 형변환 방식 중 두 번째 방식을 채택했습니다.
책에서는 단점으로 요소마다 형변환을 해야하기 때문에 번거롭다고 했는데,
이렇게 함수로 묶어서 중복코드를 제거한 모습입니다.
Beta Was this translation helpful? Give feedback.
All reactions