Skip to content
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

๐Ÿš€ 1๋‹จ๊ณ„ - ์ŠคํŠธ๋ฆผ, ๋žŒ๋‹ค, Optional #2311

Merged
merged 9 commits into from
Apr 6, 2025

Conversation

gan-ta
Copy link

@gan-ta gan-ta commented Apr 3, 2025

์‚ฌ๋‹ค๋ฆฌํƒ€๊ธฐ ๋ฏธ์…˜ 1๋‹จ๊ณ„ ์ œ์ถœํ•ฉ๋‹ˆ๋‹ค.
์ด๋ฒˆ ๋ฏธ์…˜ ์ž˜ ๋ถ€ํƒ ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๐Ÿ™‡โ€โ™‚๏ธ

@gan-ta gan-ta changed the base branch from master to gan-ta April 3, 2025 15:21
Copy link
Member

@Hyeon9mak Hyeon9mak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์•ˆ๋…•ํ•˜์„ธ์š” ํฌ์„ญ๋‹˜! ์‚ฌ๋‹ค๋ฆฌ ๋ฏธ์…˜์„ ํ•จ๊ป˜ํ•  ์ตœํ˜„๊ตฌ์ž…๋‹ˆ๋‹ค. ๐Ÿ™‡โ€โ™‚๏ธ
1๋‹จ๊ณ„ ๊น”๋”ํ•˜๊ฒŒ ์ž˜ ์ง„ํ–‰ํ•ด์ฃผ์…จ์Šต๋‹ˆ๋‹ค ๐Ÿ‘
๊ฐ„๋‹จํ•œ ์ฝ”๋ฉ˜ํŠธ ํ•˜๋‚˜๋งŒ ๋‚จ๊ฒผ์Šต๋‹ˆ๋‹ค! ๋‹ค์Œ ๋‹จ๊ณ„ ์ง„ํ–‰๊ณผ ํ•จ๊ป˜ ํ™•์ธํ•ด์ฃผ์„ธ์š” ๐Ÿ˜„

Comment on lines +11 to +22
- [x] CarTest์˜ ์ต๋ช… ํด๋ž˜์Šค๋ฅผ ๋žŒ๋‹ค๋กœ ์ „ํ™˜
- [x] sumAll, sumAllEven method ๋žŒ๋‹ค๋ฅผ ํ™œ์šฉํ•ด ์ค‘๋ณต ์ œ๊ฑฐ
- [x] sumOverThreeAndDouble() ๊ตฌํ˜„ - List์— ๋‹ด๊ธด ๋ชจ๋“  ์ˆซ์ž ์ค‘ 3๋ณด๋‹ค ํฐ ์ˆซ์ž๋ฅผ 2๋ฐฐ ํ•œ ํ›„ ๋ชจ๋“  ๊ฐ’์˜ ํ•ฉ์„ ๊ตฌํ•œ๋‹ค (map, reduce, filter๋ฅผ ํ™œ์šฉ)
- [x] printLongestWordTop100() ๋ฉ”์„œ๋“œ ๊ตฌํ˜„ (map, reduce, filter๋ฅผ ํ™œ์šฉ)
- ๋‹จ์–ด์˜ ๊ธธ์ด๊ฐ€ 12์ž๋ฅผ ์ดˆ๊ณผํ•˜๋Š” ๋‹จ์–ด๋ฅผ ์ถ”์ถœ
- 12์ž๊ฐ€ ๋„˜๋Š” ๋‹จ์–ด ์ค‘ ๊ธธ์ด๊ฐ€ ๊ธด ์ˆœ์„œ๋กœ 100๊ฐœ์˜ ๋‹จ์–ด๋ฅผ ์ถ”์ถœ
- ๋‹จ์–ด ์ค‘๋ณต์„ ํ—ˆ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค. ์ฆ‰, ์„œ๋กœ ๋‹ค๋ฅธ ๋‹จ์–ด 100๊ฐœ๋ฅผ ์ถ”์ถœ
- ์ถœํ•œ 100๊ฐœ์˜ ๋‹จ์–ด๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค. ๋ชจ๋“  ๋‹จ์–ด๋Š” ์†Œ๋ฌธ์ž๋กœ ์ถœ๋ ฅ
- [x] ageIsInRange1() ๋ฉ”์†Œ๋“œ ๊ธฐ๋Šฅ Optional์„ ํ™œ์šฉํ•ด ageIsInRange2() ๋ฉ”์†Œ๋“œ์— ๊ตฌํ˜„
- [x] getUser() ๋ฉ”์†Œ๋“œ๋ฅผ ์ž๋ฐ” 8์˜ stream๊ณผ Optional์„ ํ™œ์šฉํ•ด ๊ตฌํ˜„
- [x] Expression์˜ of ๋ฉ”์†Œ๋“œ ๊ตฌํ˜„
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ผผ๊ผผํ•œ ์š”๊ตฌ์‚ฌํ•ญ ์ •๋ฆฌ ๐Ÿ‘

Comment on lines +2 to +5

public interface Condition {
boolean test(Integer number);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FunctionalInterface ๋ฅผ ์„ ์–ธํ•˜๋Š” ๊ฒƒ๊ณผ ํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์—๋Š” ์–ด๋–ค ์ฐจ์ด๊ฐ€ ์žˆ์„๊นŒ์š”?

@Hyeon9mak Hyeon9mak merged commit 9889b8a into next-step:gan-ta Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants