Repository navigation
Ubinquitous - #2
Merged
Merged
Conversation
qlido
reviewed
Apr 17, 2023
Member
|
@Ubinquitous 무승부는 어디로 갔나요 |
Author
|
앗추가햇숩뉘당ㅎㅎ죄송함미다 |
Member
|
열심히 하셨네요 수고하셨습니다! |
Author
|
머지해주세용 호현짱 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
안녕하세요 호현, 창보!! 저도 백엔드를 배워보고 싶어서 직접 인서트코스를 진행하게 되었습니다.
Scanner와 여러가지의 문법들을 검색해보니, 기존에 배웠던 JAVA 문법 중, ArrayList에 대해 더 개념이 잡히는 것 같았습니다.
헌데 코딩을 하며 한 가지 궁금한 점이 생겼습니다!
제가 intellij에서 코딩을 할 때, ArrayList를 선언할 때 new 키워드를 사용해서 선언을 해주었는데요,
선언해보니 코드를 회색으로 죽여버리는 것 같았습니다. 그래서 주석을 읽어보니 선언해줄 필요가 없다고 이야기해서,
기존 new 키워드 선언문을 제거하고 final을 통해서 Scanner로 입력을 받을 때 Arraylist에 값들을 대입해주었습니다.
new 키워드를 어떨 때 사용하는지 궁금합니다!!
그리고 추가적으로 강화포문 쓰기 귀찮아서 Collection으로 때웠습니다~~~~ 죄송합니다~~~~~ 리팩토링할 때 사용해보겠습니다!