Skip to content

10주차: Stream 기본 #57

Open
Open

Description

@Livenow14

2. 자바 기초

목표

stream을 사용해보자

학습할 것 (필수)

컬렉션 프레임 워크 (JCF ( Java Collection Framework ))

Stream의 특징 정리 (map, filter, sorted, distinct, limit. foreach)

Collection.forEach 와 Stream.forEach 의 차이

for문을 stream으로 변환하는 법

링크

자바 실습

racingcar에 for문을 최대한 삭제해보세요.

주의 사항 (소프트웨어 의식적 연습 - 객체지향 생활 체조 원칙)

규칙 1: 한 메서드에 오직 한 단계의 들여쓰기(indent)만 한다.
규칙 2: else 예약어를 쓰지 않는다.
규칙 3: 모든 원시값과 문자열을 포장한다.
규칙 4: 한 줄에 점을 하나만 찍는다.
규칙 5: 줄여쓰지 않는다(축약 금지).
규칙 6: 모든 엔티티를 작게 유지한다.
규칙 7: 2개 이상의 인스턴스 변수를 가진 클래스를 쓰지 않는다.
규칙 8: 일급 콜렉션을 쓴다.
규칙 9: 게터/세터/프로퍼티를 쓰지 않는다.
규칙 10: 한 메서드에 10줄 이상 사용하지 않는다.

Activity

  1. PandaHun commented on Apr 29, 2021

    @PandaHun
    Member

    실습 및 내용 정리는 전부 완료된 후 PR 올려주세요
    또한, PR 이후 Issue에 코멘트 달아주세요

  2. dbswl067 commented on May 2, 2021

    @dbswl067
  3. BLINK-ONCE commented on May 2, 2021

    @BLINK-ONCE
  4. DongLee99 commented on May 2, 2021

    @DongLee99
  5. jeongyuneo commented on May 2, 2021

    @jeongyuneo
  6. dustndus8 commented on May 2, 2021

    @dustndus8
  7. Livenow14 commented on May 2, 2021

    @Livenow14
    ContributorAuthor

    https://gist.github.com/Livenow14/106a612e1ac3d70525ad21a7056e0021

    <script src="https://gist.github.com/Livenow14/106a612e1ac3d70525ad21a7056e0021.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions