-
Notifications
You must be signed in to change notification settings - Fork 1.2k
π 4λ¨κ³ - μλμ°¨ κ²½μ£Ό(μ°μΉμ) #6100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: jieung2
Are you sure you want to change the base?
Conversation
- split λ©μλλ₯Ό λΆλ¦¬νμ¬ split κΈ°λ₯λ§ νλλ‘ κ΅¬ν
- calculateμμ κΈ°λ₯λ€μ λͺ¨μΌλ μν κ³Ό ν©μ ꡬνλ μν μ λμμ μννκ³ μμκΈ° λλ¬Έμ νλμ μ± μλ§μ μ£ΌκΈ° μν΄ λΆλ¦¬
- forλ¬ΈμΌλ‘ ꡬμ±λμ΄μλ λΆλΆ streamμΌλ‘ λ³κ²½ - κ³΅λ°±μ΄ μ λ ₯λμλμ§ κ²μ¬νλ κΈ°λ₯μ isEmptyλ₯Ό isBlankλ‘ λ³κ²½. isEmptyλ λΉ λ¬Έμμ΄λ§ νλ³ν μ μκ³ κ³΅λ°± λ¬Έμμ΄μ νλ³ν μ μκΈ° λλ¬Έ - Pattern.comple(REGEX) λΆλΆμ μμλ‘ μ μΈνμ¬ μ¬μ©. Pattern κ°μ²΄λ λΉμΌκ°μ²΄μ΄κΈ° λλ¬Έμ μμλ‘ μ μΈ ν μ¬μ¬μ©νκΈ° μν΄ - μμμΈμ§ κ²μ¦νλ λ©μλμ νμ μ voidλ‘ λ³κ²½
- μ«μλ₯Ό ν μ€νΈνκΈ° μν΄μλ numberGeneratorλ₯Ό μΆμννλΌλ νΌλλ°± λ°μ
- RandomNumberGeneratorλ₯Ό ν μ€νΈνκΈ° νλλ―λ‘ μΈν°νμ΄μ€λ₯Ό ν΅ν΄ μΆμν
- μμκ° ν¬μ₯
- μΌκΈ 컬λ μ νμ©
- μλμ°¨ λμκ° μλ μλμ°¨ μ΄λ¦μ μ λ ₯λ°λ λ‘μ§μΌλ‘ μμ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
κ΅¬μ‘°κ° κΉλν΄μ ν° νΌλλ°±μ μμ΅λλ€~
κ°λ¨ν νΌλλ°±μ λ¨κ²¨λμμΌλ νμΈνλ² λΆνλ립λλ€!
μΈμ λ κΆκΈνκ² μλ€λ©΄ DMμ£ΌμΈμ~
public class Car { | ||
private final static int BASE_NUMBER = 4; | ||
private final static int MAX_NAME_LENGTH = 5; | ||
private final String name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nameλ νλ² μμκ° ν¬μ₯μ ν΄λ³΄μλ©΄ μ΄λ¨κΉμ?
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
public class Cars { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ΄λ¬ν κ³ λ―Όμ ν΄λ΄λ μ’μκ±° κ°μμ.
μ°μΉμλΌλκ²μ μ΄λμ μ‘΄μ¬ν κΉμ?
Cars λ΄μμ μ°μΉμκ° μ‘΄μ¬νμ§ μμκΉμ?
Carsκ° μ°μΉμλ₯Ό returnνλκ² μ΄μΈλ¦¬μ§ μμκΉμ?
@@ -0,0 +1,17 @@ | |||
package domain; | |||
|
|||
public class Position { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
positionμ 0 λ―Έλ§μ κ°μ΄ λ μ μμκΉμ?
μλ νμΈμ, 4λ¨κ³λ μλΆνλ립λλ€!
κ°μ¬ν©λλ€.