Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- geometry
- Number Theory
- 코테
- Stack
- Binary Search
- Data Structure
- 파이썬
- Matrix
- Class
- array
- Binary Tree
- database
- hash table
- sorting
- bit manipulation
- Math
- 자바
- java
- two pointers
- Tree
- greedy
- string
- simulation
- 구현
- implement
- 코딩테스트
- Counting
- SQL
- dynamic programming
- Method
Archives
- Today
- Total
목록intermediate (1)
코린이의 소소한 공부노트

[중간 연산이란?] 1. 연산 결과가 스트림인 연산 2. 반복적으로 적용이 가능하다. [중간 연산 종류] 1. 스트림 자르기: skip(), llimit() // 앞에서부터 n개 건너뛰기 Stream skip(long n) // maxSize 이후의 요소는 잘라냄 Stream limit(long maxSize) // 예시 IntStream intStream = IntStream.rangeClosed(1, 10); // 12345678910 intStream.skip(3).limit(5).forEach(System.out::print); // 45678 (3개 건너뛰고, 5개 자름) 2. 스트림의 요소 걸러내기: filter(), distinct() // 조건에 맞지 않는 요소 제거 Stream filte..
Java
2023. 2. 7. 10:57